Replies: 2 comments 5 replies
-
Looks like the node devs have been getting a lot of slack over this for some time now: nodejs/node#30927 One comment points to --experimental-specifier-resolution, but I don't see that in node v16's help but it does work: $ >test.js
$ node --experimental-specifier-resolution=node
(node:480844) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
Welcome to Node.js v16.17.1.
Type ".help" for more information.
> await import('./test')
[Module: null prototype] { } I'm not confident it will not be removed as stated in the warning, but it works and may be an option. Now, does nuxi build allow for a node parameter? I do not see this in the cli help and the runtimeconfig seams to be missing parameters like |
Beta Was this translation helpful? Give feedback.
-
I think there could be a problem with import mantineStyles from '@mantine/core/styles.css'; but facing this output
But when I comment this line and use this plugin instead, then problem is gone. |
Beta Was this translation helpful? Give feedback.
-
I'm running
nuxi build
from Nuxt 3 where a fatal error stops the build:This works under nuxi dev. I can see in the project I am importing, it has this file
graphiql.html
with a .js extensiongraphiql.html.js
:And tries to import it using require and probably relying on require to search for "js"
const graphiql_html_1 = require("../../assets/graphiql.html")
. This is not my package. Does Nitro have a way to get node to search, looking for the js extension?Thank you
Beta Was this translation helpful? Give feedback.
All reactions