NPM Module Doesn't work when Using import syntax
See original GitHub issueGeneral information
- SDK/Library version: 1.13
- Environment: Sandbox
- Browser and OS - Chrome on Mac
Issue description
Hi, when attempting to initialize an instance of drop-in ui, I’m getting the following error message:
Uncaught Error: Channel ID must be specified
Any ideas? I was using v2 of the drop-in ui without issue.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
cannot use import statement outside a module" - Stack Overflow
javascript - Using NPM package shows "Error: cannot use import statement outside a module" - Stack Overflow. Stack Overflow for Teams – Start ......
Read more >Cannot import and use my package: Vulcheck #3904 - GitHub
The first solution is to set the type field of the package. json file to module (basically adding "type": "module" to your package....
Read more >JavaScript modules - MDN Web Docs
Importing features into your script ... You use the import statement, followed by a comma-separated list of the features you want to import ......
Read more >How to use NPM (and import/export modules) in JavaScript
To create a package.json file, run npm init in the root folder of your project. After running this command, it asks you for ......
Read more >module-not-found - Next.js
When importing a module from npm this module has to be installed locally. ... The swr module has to be installed using a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran into this error when I accidentally had both drop-in JavaScript and another Braintree JavaScript library on my page. Removing the “braintree-2.32.1.min.js” script tag fixed the problem.
Glad we found an explanation for it. Thanks for the update!