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

Does not correctly indicate the path to the file #321

Closed
vasivas opened this issue Apr 1, 2018 · 0 comments
Closed

Does not correctly indicate the path to the file #321

vasivas opened this issue Apr 1, 2018 · 0 comments

Comments

@vasivas
Copy link

vasivas commented Apr 1, 2018

// index.ts

console.log('is src/index.ts');
nonExistenFunction();

is src/index.ts context.js:2509
index.ts:2 Uncaught ReferenceError: nonExistenFunction is not defined index.ts:2
at Object../index.ts (index.ts:2)
at webpack_require (index.ts:2)
at Object../index.spec.ts (index.ts:2)
at webpack_require (index.ts:2)
at index.ts:2
at index.ts:2

The sourcemap has applied to the error path and therefore the path is specified in the browser console as index.ts. It's Ok!
But the console.log path is specified as context.js. It's Bad!

How to make the console.log path in the browser display index.ts?

Minimal configuration of the project https://github.com/vasivas/karma-webpack-demo

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

2 participants