Closed andrey-skl closed 9 years ago
Recieved a similar issue:
ERROR in ./application.js
Module build failed: Error: "../application.js" is not in the SourceMap.
at SourceMapConsumer_sourceContentFor [as sourceContentFor] (/home/tyler/Desktop/myapp/node_modules/source-map/lib/source-map/source-map-consumer.js:677:15)
at SourceMapGenerator.<anonymous> (/home/tyler/Desktop/myapp/node_modules/source-map/lib/source-map/source-map-generator.js:233:42)
at Array.forEach (native)
at SourceMapGenerator_applySourceMap [as applySourceMap] (/home/tyler/Desktop/myapp/node_modules/source-map/lib/source-map/source-map-generator.js:232:34)
at Object.module.exports (/home/tyler/Desktop/myapp/node_modules/ng-annotate-loader/loader.js:47:17)
@tylerdmace You error is different as I see. Can you try to use source-map 0.4.2 manually?
Got the same problem with 0.4.3. After downgrade to 0.4.2 everything works fine.
version 0.0.5 published with fixed 0.4.2 source-map version
Still not working
@Avien can you please try to downgrade to ng-annotate-loader@0.0.4 and try again? Would it fix that?
0.0.5
works fine.
Downgraded to 0.0.4:
ERROR in ./src/app/app.js
Module build failed: Error: "../app.js" is not in the SourceMap.
at SourceMapConsumer_sourceContentFor as sourceContentFor
at SourceMapGenerator.
Same error in 0.0.5 but longer...
@Avien was it worked before?
Weird, I had 0.0.4 till this morning and it worked great, after deleting my node_modules directory and reinstalling package.json it stopped working (still with 0.0.4)
@Avien can you check what version of source-maps is installed when you run npm install
?
ng-annotate-loader@0.0.5 node_modules/ng-annotate-loader
├── source-map@0.4.2 (amdefine@0.1.1)
└── loader-utils@0.2.10 (big.js@3.1.3, json5@0.4.0)
should 0.4.2
yep:
ng-annotate-loader@0.0.5 node_modules/ng-annotate-loader
├── source-map@0.4.2 (amdefine@0.1.1)
├── loader-utils@0.2.10 (big.js@3.1.3, json5@0.4.0)
└── ng-annotate@0.15.4 (tryor@0.1.2, simple-fmt@0.1.0, alter@0.2.0, simple-is@0.2.0, stringset@0.2.1, stringmap@0.2.2, stable@0.1.5, convert-source-map@0.4.1, source-map@0.1.43, acorn@0.11.0, ordered-ast-traverse@1.1.1, optimist@0.6.1)
@Avien Okay. You can downgrade to 0.0.4 and fixate source-map@0.4.2 in you package json for a while.
OK it's working now, But I had to explicitly define the source-map@0.4.2 in my package.json so it would override your dependency That what you meant of course :)
Thanks!!
I have reverted broking pull request, version 0.0.6 is available. @Avien please check it
It's working , thanks
Error exist only with karma-webpack plugin in tests.
Error: Cannot find module