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

Wrangler throws an error during start #485

Open
0xi4o opened this issue Oct 1, 2024 · 1 comment
Open

Wrangler throws an error during start #485

0xi4o opened this issue Oct 1, 2024 · 1 comment

Comments

@0xi4o
Copy link
Contributor

0xi4o commented Oct 1, 2024

I've a Remix app using Evolu that I want to deploy to Cloudflare Pages. When I run wrangler pages dev ./build/client I get this error:

✘ [ERROR] service core:user:worker: Uncaught Error: (FiberFailure) (FiberFailure) Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/

    at null.<anonymous> (ix5qrvh0o2.js:63941:22) in fiberFailure
    at null.<anonymous> (ix5qrvh0o2.js:63882:15)
    at null.<anonymous> (ix5qrvh0o2.js:70642:51) in runSync
    at null.<anonymous> (ix5qrvh0o2.js:48267:25) in pipeArguments
    at null.<anonymous> (ix5qrvh0o2.js:53408:16) in pipe
    at null.<anonymous> (ix5qrvh0o2.js:98975:77) in createEvolu
    at null.<anonymous> (ix5qrvh0o2.js:101318:13) in ../build/server/index.js
    at null.<anonymous> (ix5qrvh0o2.js:10:56) in __init
    at null.<anonymous> (ix5qrvh0o2.js:101574:5) in [[path]].ts
    at null.<anonymous> (ix5qrvh0o2.js:10:56) in __init


✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.

Repo for reproducing this error: https://github.com/0xi4o/remix-cloudflare-pages

@steida
Copy link
Contributor

steida commented Oct 1, 2024

Thank you for reporting that. I will take a look in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants