visitor-as
visitor-as copied to clipboard
visitor-as 0.6.0 appears to be incompatible with assemblyscript 0.19+
npm install reports this error when using visitor-as 0.6.0 with assemblyscript 0.19+:
npm WARN Could not resolve dependency:
npm WARN peer assemblyscript@"^0.18.31" from [email protected]
npm WARN node_modules/visitor-as
npm WARN dev visitor-as@"^0.6.0" from the root project
npm WARN 1 more (@as-covers/transform)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ...
npm ERR! Found: [email protected]
npm ERR! node_modules/assemblyscript
npm ERR! dev assemblyscript@"^0.19.20" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer assemblyscript@"^0.18.31" from [email protected]
npm ERR! node_modules/visitor-as
npm ERR! dev visitor-as@"^0.6.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
I worked around the issue by running the following:
$ npm install --save-dev --force visitor-as
Tho it seems code generation results in duplicate symbols now:
> asc assembly/test.ts --target test
ERROR TS2300: Duplicate identifier '__encoded'.
__encoded: string = ''
~~~~~~~~~
in assembly/test.ts(1,1)
__encoded: string = ''
~~~~~~~~~
in assembly/index.ts(1,1)
...
This is still an issue. It's preventing me from getting a lot of work done. Can I help somehow?