DenoDDeno
Powered by
moodringM
Denoβ€’6mo agoβ€’
1 reply
moodring

"Complicated" dynamic import and deno bundle for the browser ..

I recently updated from 2.4 to 2.5, specifically for the new html entrypoint feature for the bundle command.

Before upgrading, bundling ts/css to browser-ready output works fine. After upgrading, not only am I seeing several thousand chunks from bundled output, but also new errors in the browser console regarding missing .js files.

Some diagnostic work shows the problem package to be
browser-fs-access
browser-fs-access
, which is a dependency of one of my direct dependencies, and the problem code to be dynamic imports, as in the following:
...
const o = e ? import("./file-save-745eba88.js") : import("./file-save-3189631c.js");
...
const o = e ? import("./file-save-745eba88.js") : import("./file-save-3189631c.js");


The errors in the browser look like the following:
index.mjs:10   GET http://localhost:9090/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/node_modules/.deno/browser-fs-access@0.29.1/node_modules/browser-fs-access/dist/file-open-002ab408-VZYZNU6I.js net::ERR_ABORTED 404 (Not Found)
(anonymous) @ index.mjs:10
index.mjs:10   GET http://localhost:9090/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/node_modules/.deno/browser-fs-access@0.29.1/node_modules/browser-fs-access/dist/file-open-002ab408-VZYZNU6I.js net::ERR_ABORTED 404 (Not Found)
(anonymous) @ index.mjs:10


Any guidance/help/tips are appreciated. Thanks!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

`deno bundle` and React Router
chaosharmonicCchaosharmonic / help
8mo ago
Deno bundle hangs
Romuald QuantinRRomuald Quantin / help
4y ago
Deno and Eta browser-side?
Good Looking SoftwareGGood Looking Software / help
13mo ago
Deno bundle duplicating variables
SorikairoSSorikairo / help
4y ago