-
Notifications
You must be signed in to change notification settings - Fork 12k
Error aSource is not in the SourceMap #1982
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
Comments
It doesn't work under /var/www/html/public but it does under /home/myuser It works when i copy the cloned folder under my project node_modules folder |
I have the same issue on Mac OS X Yosemite. |
The same on:
|
I have the same issue with if angular-cli is installed globally:
Works if the CLI ist installed locally. Possibly some rights issue? Even though the error would then probably be somehow different... |
Having the same issue. |
Same issue: angular-cli: 1.0.0-beta.15 |
Same issue. angular-cli: 1.0.0-beta.15 |
Same on Mac os El Capitan: angular-cli: 1.0.0-beta.15 |
Same issue. Additional details: Created the project on my laptop (also Ubuntu 16.04, angular-cli 1.0.0-beta.15, node 4.2.6) and it built/served fine. This failure occurs on my desktop after Edit: Ran a |
@brianmadden Thank you so much! this worked for me |
@brianmadden Thanks, that helped! |
For us this happens when we give the node_modules as symlink instead of a folder inside the source. Presumably the webpack tries to include |
I'm having some trouble understanding this issue. So this happens when using the master branch directly, right? What else are you doing? Can you give me very explicit instructions for me to repro it? I use the master branch every day and haven't ever seen this happen, so I'm wondering what the setup is, and how it differs from mine. |
I think my case was caused by re-using an existing directory for my project. When I initially set the project up I re-used my existing project directory. Prior to initializing the cli project I did a I then pushed to github and pulled on my laptop. This is where I believe things went wrong. There were files left over on my laptop from the old project, but they weren't tracked by git so weren't deleted when I pulled. I think the problem was the lingering files, and this is why the |
@svensp said, that we are using a symlinked "node_modules" folder. And running the build process does not handle the correct resolvement of the "../node_modules" (in webpack) to get the correct real path. This happens in our docker node environment where the node_modules folder is just a symlink from within the docker image/container. So your project dir has not the node_modules content, only the symlink. |
This might solve it then #2291. Can you test making this change manually? |
I updated to latest angular-cli (no master anymore). Then ng serve. And I still have the error. I do not have angular-cli/models/webpack-build-common.ts file in my node_modules. My project was initiated on beta.11-webpack.8 version. And I updated regularly the code. |
Fixed by #2291 |
Same issue |
For some of us the command - ng new app-name - needs to be run with sudo |
Having the exact same issue building a docker image. Using Node:6.7.0 and CLI:1.0.0-beta.19-3. It works fine in dev mode but when I change NODE_ENV=production, $ ng build, fails with the following error: /usr/lib/node_modules/angular-cli/node_modules/webpack-sources/node_modules/source-map/lib/source-map-consumer.js:704 |
I have the same problem on linux with a brand new folder and use of ng init and latest version of node 7. This issue is not fixed. |
Any workaround? Same issue |
For docker users. Are your node_modules being shared from the host machine? there may be an issue with how docker follows the sym-links in your mounted directories. Look into installing node_modules with --no-bin-links |
@JSMike how can install with |
it's an NPM flag, you can do |
@JSMike Thank it's work here |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Ubuntu 16.04
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: local (v1.0.0-beta.11-webpack.8, branch: master)
node: 6.5.0
os: linux x64
do on your code? etc.
I updated to master branch and tried to build or serve
more information.
The text was updated successfully, but these errors were encountered: