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
Serve command with API specific behaviors for an HTML ("fragment") API
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/owenbuckley/Workspace/project-evergreen/greenwood/packages/plugin-import-css/test/cases/exp-serve.ssr/public/api/assets/card.css' imported from /Users/owenbuckley/Workspace/project-evergreen/greenwood/packages/plugin-import-css/test/cases/exp-serve.ssr/public/api/assets/card-78d7632f.js
at new NodeError (node:internal/errors:393:5)
at finalizeResolution (node:internal/modules/esm/resolve:323:11)
at moduleResolve (node:internal/modules/esm/resolve:916:10)
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at resolve (file:///Users/owenbuckley/Workspace/project-evergreen/greenwood/test/test-loader.js:21:12)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40) {
code: 'ERR_MODULE_NOT_FOUND'
}
As seen in the linked reproduction above, we should make now make sure that .js files get emitted as a chunk.
As this is an experimental feature and will require a decent change to fix / support, will target this fix against the v0.29.0 alpha release line.
The text was updated successfully, but these errors were encountered:
Summary
If trying to do something like this with custom imports
Rollup throws an error on trying to bundle on the CSS file when used in the aforementioned contexts from the issue title
Details
It looks like there is also a "bug" on @web/rollup-plugin-import-meta-assets in which it will only emit references found in
new URL
as an asset, instead of chunk (at least for .js files). This leads to 404s when resolving these assetsAs seen in the linked reproduction above, we should make now make sure that .js files get emitted as a chunk.
As this is an experimental feature and will require a decent change to fix / support, will target this fix against the v0.29.0 alpha release line.
The text was updated successfully, but these errors were encountered: