Skip to content
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

Prod build error on loading @angular/core.js #831

Closed
RobNordon opened this issue May 9, 2016 · 11 comments
Closed

Prod build error on loading @angular/core.js #831

RobNordon opened this issue May 9, 2016 · 11 comments

Comments

@RobNordon
Copy link

Upon building the production version gulp build.prod an error is caused in the build.bundles.app task which stops the build.

[14:01:36] Starting 'build.bundles.app'...
Unhandled rejection Error on fetch for @angular/core.js at file:///C:/Dev/angula
r2-seed/node_modules/@angular/core.js
Loading dist/tmp/main.js
Error: ENOENT: no such file or directory, open 'C:\Dev\angular2-seed\nod
e_modules@angular\core.js'
at Error (native)

@NathanWalker
Copy link
Collaborator

NathanWalker commented May 9, 2016

You may need to:

rm -rf node_modules typings
git pull
npm install
npm run build.prod

@RobNordon
Copy link
Author

Thanks Nathan, however the same error results.

I'm using Node v6.1.0, NPM v3.8.8 on Windows 7.

@NathanWalker NathanWalker reopened this May 9, 2016
@NathanWalker
Copy link
Collaborator

This may be a specific version issue with Windows. @d3viant0ne Do you happen to have a Windows setup to help test this out?

@Shyam-Chen
Copy link
Contributor

I also encountered the same problem

Unhandled rejection Error on fetch for @angular/core.js at file:///D:/angular2-seed/node_modules/@angular/core.js
        Loading dist/tmp/main.js
        Error: ENOENT: no such file or directory, open 'D:\angular2-seed\node_modules\@angular\core.js'
    at Error (native)

@kambojankit
Copy link

I am also facing the same issue with the prod build.

The error i get is as below:

Unhandled rejection Error on fetch for @angular/core.js at file:///C:/****/node_modules/@angular/core.js
        Loading dist/tmp/main.js
        Error: ENOENT: no such file or directory, open 'C:\*****\node_modules\@angular\core.js'
    at Error (native)

@Shyam-Chen
Copy link
Contributor

report

@sjiep
Copy link
Contributor

sjiep commented May 9, 2016

Also receiving the prob build error. Receiving the same error as mentioned by @kambojankit and @Shyam-Chen.

@mgechev
Copy link
Owner

mgechev commented May 9, 2016

I will fix this tomorrow. Most likely wrong system builder config.

@AntonyBaasan
Copy link

Thanks mgechev. In my case: Windows 10, Node v6.0.0, npm 3.8.6

@NathanWalker
Copy link
Collaborator

@mgechev I was able to test the fix out with VirtualBox... You were right, system builder config just needed packages. Went ahead and cleared everyone here.

@Priyankashelar10
Copy link

facing same issue

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

8 participants