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

Errors line source in js come from .scss files #2

Open
Hillsrion opened this issue Jan 16, 2018 · 4 comments
Open

Errors line source in js come from .scss files #2

Hillsrion opened this issue Jan 16, 2018 · 4 comments

Comments

@Hillsrion
Copy link

Hello,
Thanks for your useful boilerplate.
I'm kinda confused in my debugging because when I got some JS errors, the line source is the last line of my last imported .scss file.

Any idea ?

capture d ecran 2018-01-16 a 12 29 34

@Chieftl
Copy link

Chieftl commented May 23, 2018

I have the same problem. Any solutions?

@Hillsrion
Copy link
Author

No, unfortunately, I finished my project with this problem

@Chieftl
Copy link

Chieftl commented Jun 1, 2018

So, I found solution:

This 'source-map' in conf/webpack.common.js is the problem:
devtool: 'source-map'

But there are many others types of devtool
https://webpack.js.org/configuration/devtool/

Just replace 'source-map' with any of these:
eval
cheap-eval-source-map
cheap-module-eval-source-map
eval-source-map
inline-cheap-source-map
inline-cheap-module-source-map
inline-source-map

@ghost
Copy link

ghost commented Jan 31, 2019

hi there, this fails on my system:
webpack-dev-server --config webpack/webpack.dev.js

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