Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to antlr 4.12: Cannot use 'import.meta' outside a module #73

Open
justinehell opened this issue May 9, 2023 · 0 comments
Open

Comments

@justinehell
Copy link
Member

justinehell commented May 9, 2023

After upgrading antlr4 from v4.11.0 → v4.12.0, an error occurs when running npm run test

To Reproduce

Steps to reproduce the behavior:

  1. Upgrade antlr1 to v4.12.0
  2. Run npm install
  3. Run npm run test
  4. See error

Expected behavior
I expect to be able to continue to run tests without import.meta failing.

Screenshots
The following error occurs in:

  • tests/unit/render/TerraformRenderer.spec.js (see screenshot)
  • tests/unit/parser/TerraformParser.spec.js
  • tests/unit/index.spec.js
  • tests/unit/models/TerraformPlugin.spec.js

bug_antlr4

Note: check this issue jestjs/jest#12183

@justinehell justinehell added the Bug Something isn't working label May 9, 2023
@Zorin95670 Zorin95670 added Technical task and removed Bug Something isn't working labels May 9, 2023
@Zorin95670 Zorin95670 changed the title Cannot use 'import.meta' outside a module Upgrade to antlr 4.12: Cannot use 'import.meta' outside a module May 9, 2023
@Zorin95670 Zorin95670 moved this to 📋 Backlog in Board of Leto-modelizer May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants