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

Project fails after Build complete #5

Closed
casvil opened this issue Dec 11, 2017 · 6 comments
Closed

Project fails after Build complete #5

casvil opened this issue Dec 11, 2017 · 6 comments

Comments

@casvil
Copy link

casvil commented Dec 11, 2017

screen shot 2017-12-11 at 4 38 03 pm

node -v = 8.9.1
tried deleting node modules and reinstalling and did not work

any idea? Thanks!

@casvil casvil changed the title Can't compile project Project fails after Build complete Dec 11, 2017
@casvil
Copy link
Author

casvil commented Jan 3, 2018

Still getting this error.

I cloned your project @toddmotto and I get the same error.

Thanks!

@toddmotto
Copy link
Member

Hey @casvil ! Which folder were you using inside of the angular-pro-src? Some are slightly tweaked (webpack wise) for different examples - I can take a look and advise if you can provide that :)

@casvil
Copy link
Author

casvil commented Jan 3, 2018

@toddmotto hey todd! Thanks for helping, here it is my project https://github.com/casvil/angular-pro-src and here the webpack file https://github.com/casvil/angular-pro-src/blob/master/webpack.config.js

My root folder is called app

I am gonna try and check what's missing in my webpack config.

Thanks!

@toddmotto
Copy link
Member

Perfect, I think this error is to do with the aot loader in there. Try swapping it out with the one here in the webpack config, as this uses the official Angular one. The one previously used allows for AoT in development as well as production - sometimes an error occurs it seems so would be worth swapping that out. I'll make sure I update the rest of the source code with this addition as well :)

@casvil
Copy link
Author

casvil commented Jan 3, 2018

I get a different error Uncaught ReferenceError: webpackJsonp is not defined.
I swapped the entire file, tweaking some base paths cause I'm not using src folder.

I would really appreciate an update on this.

Thanks @toddmotto !

@kasparsuvi1
Copy link

kasparsuvi1 commented Jan 8, 2018

Hey!

Getting the same error from folders of source code.
Got error with "73-providers-usevalue", "47-route-tracking" and "80-observable-store", but not with "63-testing-setup".

Tried with "ultimate/aot-loader" latest release, not helping.

Can the problem be something alike like here? https://github.com/UltimateAngular/aot-loader/issues/16

Looking forward to solution.
Thanks!@toddmotto

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