Skip to content

npm run build fails with Node v6.5.0 #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mbpolan opened this issue Nov 14, 2016 · 4 comments
Closed

npm run build fails with Node v6.5.0 #242

mbpolan opened this issue Nov 14, 2016 · 4 comments

Comments

@mbpolan
Copy link

mbpolan commented Nov 14, 2016

Hey everyone,

I'm trying to build an app by invoking "npm run build" using NodeJS v6.5.0 and NPM 3.10.3 on CentOS 7. I already ran "npm install" prior which finished without any complaints. I saw some similar issues with Node v6.x like #93 and #97, and an almost exact one here, but nothing has helped.

Here's the output I see:

`Version: webpack 2.1.0-beta.26
Time: 809ms
+ 3 hidden modules

ERROR in ./src/polyfills.ts
Module build failed: TypeError: Can't add property fileName, object is not extensible
at Object.Linter (/home/jenkins/workspace/my-app/node_modules/tslint/lib/tslint.js:12:23)

ERROR in ./src/vendor.ts
Module build failed: TypeError: Can't add property fileName, object is not extensible
at Object.Linter (/home/jenkins/workspace/my-app/node_modules/tslint/lib/tslint.js:12:23)

ERROR in ./src/main.ts
Module build failed: TypeError: Can't add property fileName, object is not extensible
at Object.Linter (/home/jenkins/workspace/my-app/node_modules/tslint/lib/tslint.js:12:23)
Child html-webpack-plugin for "index.html":
+ 4 hidden modules

npm ERR! Linux 3.10.0-327.18.2.el7.x86_64
npm ERR! argv "/opt/nodejs/node-v6.5.0-linux-x64/bin/node" "/opt/nodejs/node-v6.5.0-linux-x64/bin/npm" "run" "build"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: rimraf dist && webpack --progress --profile --bail
npm ERR! Exit status 2`

Any ideas? Thanks!

@Foxandxss
Copy link
Member

Check the latest commit, there is a fix for beta.26

@mbpolan
Copy link
Author

mbpolan commented Nov 14, 2016

Thanks! The new code fixed the problem.

@praveen-gottala
Copy link

can you please elaborate on this issue?

@Foxandxss
Copy link
Member

Breaking change on webpack, but that is fixed in the starter, just needed to add the -loader part to every loader in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants