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.

Node.js import causing Webpack build problem

See original GitHub issue

While using @polkadot/extension-dapp with Webpack, I encountered a problem which I have narrowed down to this line.

Screenshot from 2021-02-22 01-31-26

Are polyfills for Node.js modules required in order to import Polkadot npm packages?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, Feb 22, 2021

PRs are always welcome - the utilities/crypto (which are the major users) are located at https://github.com/polkadot-js/common

0reactions
polkadot-js-botcommented, May 31, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack suddenly fails to compile due to "Module not found ...
It's an issue with the Webpack or Jest configuration. Absolute and relative paths can both be used, but be aware that they will...
Read more >
How to transpile ES modules with webpack and Node.js
Learn how webpack interacts with and supports ES modules in this deep dive tutorial on transpilation in Node.js.
Read more >
`module` gets prioritised over `main` · Issue #5756 · webpack ...
One problem is that different modules in the same build may import the same package in different ways. This is currently causing us...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Webpack 5 Issues | Documentation - Web3Auth
This issue is caused due to the fact that the web3.js and ethers.js packages have certain dependencies, which are not present within the...
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