Skip to content
New issue

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

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

Already on GitHub? # to your account

When building for prod, the console outputs: Uncaught Error: Cannot find module "./app/app" #340

Closed
msegers opened this issue Feb 18, 2016 · 1 comment

Comments

@msegers
Copy link

msegers commented Feb 18, 2016

I'm working on a fairly fresh project using the webpack-starter, it works well when I'm in dev mode serving etc.

But when I build the prod code, serve it or move the files on an apache server I get the error:
Uncaught Error: Cannot find module "./app/app"

In the sources in chrome inspector, I only see main.ts and polyfills.ts in the src directory.
Anyone encountered this before, am I missing something?

@msegers
Copy link
Author

msegers commented Feb 18, 2016

I did not realise, that having some errors in usage of quotes, spaces etc. would cause the production build to fail.

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

No branches or pull requests

1 participant