Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flareact dev Error 522 #28

Open
insuusvenerati opened this issue Sep 10, 2020 · 3 comments
Open

Flareact dev Error 522 #28

insuusvenerati opened this issue Sep 10, 2020 · 3 comments
Labels
bug Something isn't working windows

Comments

@insuusvenerati
Copy link
Contributor

Getting an error in the browser from Cloudflare when running flareact dev in a new project.

Error looks like this https://i.imgur.com/0UvmX4K.png

Flareact at 0.6.0-canary.2

Potentially relevant information:

  • Running latest windows 10 pro.
  • NodeJS v14.9.0
  • Cloudflare namespace is completely empty. out directory is empty.
  • If you run flareact build first then flareact dev the namespace is populated with the _flareact directory and it's contents but the error still persists.

Console errors:

> flareact dev

Starting Flareact dev server...
[client] [BABEL] Note: The code generator has deoptimised the styling of D:\Code\JS\Flareact\flareact-notes\node_modules\react-dom\cjs\react-dom.development.js as it exceeds the max of 500KB.
[worker]  Built successfully, built project size is 34 KiB.
[worker]  Created namespace for Workers Site "__flareact-notes-workers_sites_assets_preview"
[worker]  Success
[worker]  Listening on http://127.0.0.1:8787
[worker]  Detected changes...
[worker]  Ignoring stale first change
[worker] Uncaught
[worker] TypeError: Cannot set property 'wrap' of undefined
[worker]     at worker.js:6:24464
[worker]     at Module.<anonymous> (worker.js:6:29577)
[worker]     at Module.<anonymous> (worker.js:6:29688)
[worker]     at n (worker.js:1:110)
[worker]     at Object.<anonymous> (worker.js:1:1299)
[worker]     at n (worker.js:1:110)
[worker]     at Module.<anonymous> (worker.js:6:97960)
[worker]     at n (worker.js:1:110)
[worker]     at worker.js:1:902
[worker]     at worker.js:1:912
@insuusvenerati
Copy link
Contributor Author

@jplhomer saw you wanted me to try flareact@canary so I went ahead and tried it. Same errors as before besides the ones that got fixed in the PR

@jplhomer jplhomer added the bug Something isn't working label Sep 10, 2020
@wizzard0
Copy link

wizzard0 commented Feb 3, 2021

Reproduces exactly as described on flareact 1.1.0. Win10 v20H2, node v12

@wizzard0
Copy link

wizzard0 commented Feb 3, 2021

Possibly helpful workaround for those who decide to run flareact under WSL: install node with nvs or nvm, not via website instructions, otherwise npm i @cloudflare/wrangler will fail %)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows
Projects
None yet
Development

No branches or pull requests

3 participants