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

visitor-as 0.6.0 appears to be incompatible with assemblyscript 0.19+ #32

Open
achille-roussel opened this issue Dec 8, 2021 · 2 comments

Comments

@achille-roussel
Copy link

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 visitor-as@0.6.0
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: assemblyscript@0.19.20
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 visitor-as@0.6.0
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.
@achille-roussel
Copy link
Author

achille-roussel commented Dec 8, 2021

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)
 
 ...

@jtenner
Copy link
Contributor

jtenner commented Jan 27, 2022

This is still an issue. It's preventing me from getting a lot of work done. Can I help somehow?

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