When running serve, an error occurs with the error message:Cannot use 'inmport.meta' outside a module
See original GitHub issueDescribe the bug
When running serve, an error occurs with the error message:Cannot use ‘inmport.meta’ outside a module
Reproduction
When running serve, an error occurs with the error message:Cannot use ‘inmport.meta’ outside a module
System Info
npm run serve
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7
Top Results From Across the Web
[Bug]: SyntaxError: Cannot use 'import.meta' outside a module ...
Hi there! import.meta is an ESM only feature and cannot be used in CJS (aka when using require ), so you need the ......
Read more >Cannot use 'import.meta' outside a module - Stack Overflow
Need to get the current working directoy because I have resources in there that I need for the app to run. Need the...
Read more >How to fix "cannot use import statement outside a module"
This error occurs for one reason: you're trying to use import and you're not inside an ES module. It can happen in a...
Read more >Cannot use import statement outside a module' | HackerNoon
This error arises when we try to use import inside of a project which is not set up for modules - so let's...
Read more >Cannot use import statement outside a module [React ...
This error might be raised when using either JavaScript or TypeScript in the back-end. So you could be working on the client side...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still present in 0.22.2 😢
y ahora qué rompieron ???