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.

issue with imports

See original GitHub issue

bug

I keep getting this error on a fresh install. loading the modules as import { SHA256, EncBase64, EncUtf8 } from 'crypto-js'; seems to fix the issue.

is this a bug? or is my setup broken?

to clarify; I use es modules to load code

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chris-kruiningcommented, Dec 9, 2021

@pamapa I already had that installed based on what suggestions for similar issues, it doesn’t fix the issue but is helpful non the less. Thanks!

@kherock I could kiss you right now, that fixes it!

0reactions
kherockcommented, Dec 8, 2021

@chris-kruining you’re right in noticing that crypto-js doesn’t provide es-modules, it only exports UMD/CJS. You’ll need to include @rollup/plugin-commonjs in your rollup config in order to resolve those imports.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Pitfalls With Importing and Exporting - LiveAbout
1. Lack of Knowledge on Exchange Rates · 2. Lousy Relationship With Customs Officials · 3. Making a Bribe · 4. Being Clueless...
Read more >
Imports and Exports: A Short List of Common Problems and ...
Imports and Exports: A Short List of Common Problems and Opportunities · Automobile manufacturing and assembly · Petroleum storage, refining, and ...
Read more >
Priority Trade Issue: Import Safety
The Import Safety Priority Trade Issue is designed to ensure that unsafe products do not enter the commerce of the U.S. by working ......
Read more >
U.S. Imports: Top Categories, Challenges, Opportunities
The United States imports more than it exports. According to the U.S. Census, that creates a trade deficit of $485 billion.2 Even though...
Read more >
Handle import errors - Analytics Help - Google Support
Troubleshoot Data Import problems. Not seeing the imported data appearing in your reports, as expected? This article can help you troubleshoot the problem....
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