codegen icon indicating copy to clipboard operation
codegen copied to clipboard

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

Open auugkuu17 opened this issue 2 years ago • 2 comments

`$ 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 avatar Sep 02 '23 03:09 auugkuu17

ANTLR Parser Generator Version 4.13.0

auugkuu17 avatar Sep 04 '23 07:09 auugkuu17

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

yulingtianxia avatar Sep 05 '23 06:09 yulingtianxia