Avajs+Vue - SyntaxError on node_modules #2713
-
Hi, I've been having this problem since I added amcharts to my webapplication. Since then, everytime I run the test cases containing the import for amcharts is giving me the following: SyntaxError: Unexpected token 'export'
I tried adding the amcharts into the ava.setup.js with no success. How am I able to resolve this? For reference: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like that package is using ES modules. And based on the stack trace you're also using Babel? I'm not sure how all that is meant to fit together. I'm assuming you're building a web app and are using a bundler which manages to patch all these incompatible systems, but it's not so straight-forward in plain Node.js. AVA isn't adding anything special here. |
Beta Was this translation helpful? Give feedback.
It looks like that package is using ES modules. And based on the stack trace you're also using Babel? I'm not sure how all that is meant to fit together. I'm assuming you're building a web app and are using a bundler which manages to patch all these incompatible systems, but it's not so straight-forward in plain Node.js.
AVA isn't adding anything special here.