meteor / meteor/meteor

Support import.meta

Open
#12,324 12 comments 3 reactions 0 assignees View on GitHub

@zodern is already working on this.

Since Dec 18, 2024.

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.