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

IO exception #5

Closed
Pouja opened this issue Apr 1, 2020 · 2 comments · Fixed by #6
Closed

IO exception #5

Pouja opened this issue Apr 1, 2020 · 2 comments · Fixed by #6
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Pouja
Copy link
Contributor

Pouja commented Apr 1, 2020

There can be an io exception when there is no sourcemap given nor there is a source map file.
The following stacktrace will be reproduced (I have ommited some parts of the file path) :

ERROR in ./src/main/javascript/app/components/path/traffic-diensten.component.js
Module build failed (from ./node_modules/coverage-istanbul-loader/lib/index.js):
Error: An error occurred while trying to read the map file at \path\src\main\javascript\app\components\path\traffic-diensten.component.js.map
Error: ENOENT: no such file or directory, open '\path\src\main\javascript\app\components\path\traffic-diensten.component.js.map'
at readFromFileMap (\path\node_modules\convert-source-map\index.js:40:11)
at new Converter (\path\node_modules\convert-source-map\index.js:47:32)
at Object.exports.fromMapFileComment (\path\node_modules\convert-source-map\index.js:110:10)
at Object.exports.fromMapFileSource (\path\node_modules\convert-source-map\index.js:122:22)
at Object.default_1 (\path\node_modules\coverage-istanbul-loader\src\index.ts:28:26)
@ ./src/main/javascript/app/components/overzichten/overzichten.module.ts 92:0-94 108:807-840
@ ./src/main/javascript/app/components/components.ts
@ ./src/main/javascript/app/app.angularjs.module.ts
@ ./src/main/javascript/flow-tests.ts

See also: https://github.com/JS-DevTools/coverage-istanbul-loader/blob/master/src/index.ts#L25

@JamesMessinger JamesMessinger added bug Something isn't working help wanted Extra attention is needed labels Apr 1, 2020
@JamesMessinger
Copy link
Member

Thanks for the bug report! Do you have time to submit a PR?

@Pouja
Copy link
Contributor Author

Pouja commented Apr 1, 2020

I actually do. I'll try to come with a PR this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants