Skip to content

npm run build: fails in node_module on "class" or prototype defination #3047

Closed
@jcalfee

Description

@jcalfee

Is this a bug report?

Not sure

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

deploy
configure

Environment

  1. node -v: v8.2.1
  2. npm -v: 5.3.0
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected): [email protected]

Then, specify:

  1. Operating system: ubuntu 16.04
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. npm i eosjs-ecc
  2. require('eosjs-ecc')
  3. npm run build

Expected Behavior

success

Actual Behavior

npm run build

> react-scripts build

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file: 

 	../ecc/src/key_public.js:25 

Read more here: http://bit.ly/2tRViJ9

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/.npm/_logs/2017-09-01T17_29_14_675Z-debug.log

Line 25 is either "class" in or in my local testing the first nonoccurence of "PublicKey.prototype.xxx ="

Reproducible Demo

none yet


Prototype and classes are pretty standard I'm not sure why this would fail..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions