Consensys / eth-lightwallet

Lightweight JS Wallet for Node and the browser
MIT License
1.47k stars 503 forks source link

Webpack: Uncaught TypeError: EC is not a constructor #103

Closed Antanukas closed 8 years ago

Antanukas commented 8 years ago

When importing with Webpack require("eth-lightwallet") Uncaught TypeError: EC is not a constructor is thrown.

Not sure if this is related to lightwallet it self. It seems that there is some dependency cycles in those crypo libs. Attached npm project with this issue test-webpack.zip

npm start -> http://localhost:8080 -> open dev console

Currently workaround is to include full js file form dist require("node_modules/eth-lightwallet/dist/lightwallet.js");

hugooconnor commented 8 years ago

@Antanukas try removing '.' on line 25 of webpack.config.js

Antanukas commented 8 years ago

Heh it worked.