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

SyntaxError: The requested module 'antlr4' does not provide an export named 'tree' #47

Open
auugkuu17 opened this issue Sep 2, 2023 · 2 comments

Comments

@auugkuu17
Copy link

`$ codegen -h
file:///opt/homebrew/lib/node_modules/@dartnative/codegen/lib/objc/DNObjectiveCConverter.js:1
import { InputStream, CommonTokenStream, tree as _tree } from 'antlr4'
^^^^
SyntaxError: The requested module 'antlr4' does not provide an export named 'tree'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)

Node.js v20.1.0`

@auugkuu17
Copy link
Author

ANTLR Parser Generator Version 4.13.0

@yulingtianxia
Copy link
Member

可能是 antlr 版本比较高,可以试试 4.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants