Support import.meta
Open
confirmed
idle
legacy-build-stack
Project:JS Environment
- Dominant language
- JavaScript
- Stars
- 44.8k
- Forks
- 5.2k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 25
Description
I try use a new ES module but catch the error
SyntaxError: Cannot use 'import.meta' outside a module
W20221129-01:33:22.402(3)? (STDERR) at new Script (vm.js:102:7)
W20221129-01:33:22.402(3)? (STDERR) at createScript (vm.js:262:10)
W20221129-01:33:22.402(3)? (STDERR) at Object.runInThisContext (vm.js:310:10)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported ES module reproduction and the vm.js stack trace, then read linked pull request #13520 to understand the current work. Done means import.meta is supported in the reported case without the shown SyntaxError; no repository files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100