shuffle-seed icon indicating copy to clipboard operation
shuffle-seed copied to clipboard

Can't build with webpack2

Open koutsenko opened this issue 8 years ago • 2 comments

ERROR in ./~/diffie-hellman/lib/primes.json Module build failed: SyntaxError: Unexpected token, expected ; (2:11)

ERROR in ./~/elliptic/package.json Module build failed: SyntaxError: Unexpected token, expected ; (2:9)

The json loader is enabled by default in webpack2. Seems webpack2 cant pack your library to bundle.js

Any advices\solutions? I have already a couple of libraries in project that bundles successfully. Thanks a lot.

koutsenko avatar Mar 27 '17 06:03 koutsenko

Hi @koutsenko ,

Have you figured this out already? Before I jump into the rabbit hole myself :-)

JeffreyArts avatar Nov 05 '17 20:11 JeffreyArts

Hi @JeffreyArts.

Nope, i didnt solved that. Just switched to TimothyGu/knuth-shuffle-seed.

koutsenko avatar Nov 05 '17 21:11 koutsenko