margauxcabrera opened a new issue #6221: URL: https://github.com/apache/skywalking/issues/6221
Please answer these questions before submitting your issue. - Why do you submit this issue? - [ ] Question or discussion - [X] Bug - [ ] Requirement - [ ] Feature or performance improvement ___ ### Question - What do you want to know? Can you help me resolve the issue I'm encountering while following the steps in the documentation to use Skywalking Client JS (https://github.com/apache/skywalking-client-js/tree/v0.2.0). ___ ### Bug - Which version of SkyWalking, OS, and JRE? Skywalking Client JS 0.3.0 - Which company or project? - What happened? If possible, provide a way to reproduce the error. e.g. demo application, component version. I am encountering this error: ``` skywalking-client-js/index.js:18 import './lib/index'; ^^^^^^ SyntaxError: Cannot use import statement outside a module ``` I can add "type":"module" bin package.json, however, I don't think that's a good idea cause node_modules are not supposed to be included in the deployment. And when I add it, another issue comes up: `Cannot find module '.../node_modules/skywalking-client-js/lib/index' imported from .../node_modules/skywalking-client-js/index.js` ___ ### Requirement or improvement - Please describe your requirements or improvement suggestions. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
