You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clean install of astro with Cloudflare adaptor.
Use React component local ( or with netlify adaptor ) - is all fine.
Deploy with out React to Cloudflare - all fine.
I'm add React component - dev and build work's fine.
wrangler Preview shows - "✘ [ERROR] _worker.js is importing from another file. This will throw an error if deployed."
"✘ [ERROR] _worker.js is importing from another file. This will throw an error if deployed."
this error is typically the result from running the cloudflare adapter in mode: "advanced" (which is also the default) and running it from a pages setting which corresponds to the mode: "directory"
To fix this please try to change the astro.config.mjs line 10 to
this stackblitz does this one change and after rebuilding it just works fine, i also verified with the react project in the astro examples directory works as expected.
What version of
astro
are you using?1.6.1
Are you using an SSR adapter? If so, which one?
Cloudflare
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Clean install of astro with Cloudflare adaptor.
Use React component local ( or with netlify adaptor ) - is all fine.
Deploy with out React to Cloudflare - all fine.
I'm add React component - dev and build work's fine.
wrangler Preview shows - "✘ [ERROR] _worker.js is importing from another file. This will throw an error if deployed."
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-yjxgd3?file=package.json
Participation
The text was updated successfully, but these errors were encountered: