Repository navigation
Replies: 2 comments
|
Ok i can see why it's failing, for some reason it's not appending the .js prefix to imports that doesn't contain it. I'm not sure why or how to fix that. |
|
There are two separate changes here:
nodeResolve({ extensions: ['.js'] })
// Not exported by the Lit version tested below:
import { customElement } from 'lit/decorators';
// Exported:
import { customElement } from 'lit/decorators.js';I checked this with Lit 2.2.5, Rollup 2.77.2, and node-resolve 13.3.0. Lit's package.json has an export for With node-resolve 10.0.0 and the old The search location is a separate setting too: This is an isolated resolution/bundling reproduction, not a verification of Gerrit's Bazel/es-dev-server setup or the application in a browser. Check the installed Lit version's exports if it differs from 2.2.5; the particular subpath must be exported by that version. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, i'm wondering what the alternative for:
is?
Because currently i see that customResolveOptions is converted to moduleDirectories but .extensions isn't. So currently things are failing to compile with:
Our rollup config: https://github.com/GerritCodeReview/gerrit/blob/master/polygerrit-ui/app/rollup.config.js
Using version 10 works but 11+ doesn't.
All reactions