question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPM Module Doesn't work when Using import syntax

See original GitHub issue

General 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:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
emhoracekcommented, Apr 30, 2020

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.

0reactions
crookedneighborcommented, Sep 6, 2018

Glad we found an explanation for it. Thanks for the update!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found