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
If you wrangler pages dev ./dist where ./dist/_worker.js/index.js dynamically imports a chunk (e.g. await import(url.pathname), the chunk cannot be found. This is because the copy-modules-over-to-the-temporary-working-directory-where-we-build-functions logic is only run in bundle mode when collecting modules. We need to also copy over any additional modules that were discovered in the traversing of the module graph that ran first.
This doesn't affect prod.
The text was updated successfully, but these errors were encountered:
Which Cloudflare product(s) does this pertain to?
Pages
What version of
Wrangler
are you using?latest
What operating system are you using?
macOS
Describe the Bug
Related to #2966.
If you
wrangler pages dev ./dist
where./dist/_worker.js/index.js
dynamically imports a chunk (e.g.await import(url.pathname)
, the chunk cannot be found. This is because the copy-modules-over-to-the-temporary-working-directory-where-we-build-functions logic is only run in bundle mode when collecting modules. We need to also copy over any additional modules that were discovered in the traversing of the module graph that ran first.This doesn't affect prod.
The text was updated successfully, but these errors were encountered: