Coder Social home page Coder Social logo

Comments (5)

dealloc avatar dealloc commented on June 23, 2024 1

Well, I am using the vue webpack template, here are the steps I found to reproduce the issue:

  • install the template (vue init webpack friendly-errors-demo) (just follow the wizard to complete)
  • open the file src/components/Hello.vue and change the style tag from this
<style scoped>
...
</style>

to this

<style scoped lang="scss">
...
</style>

which should trigger something like this:
1486584015

A slightly more advanced reproduction, but with a clearer demonstration of the error would be if you create a separate scss file and attempt to import that, which results in something like below:
1486584111

as you can see, on the left the plugin tells me that there's a problem with the import of ./style.scss while the browser clearly shows that it's sass-loader not being found causing the problem.

Hope that helps, if you need more info let me know

from friendly-errors-webpack-plugin.

dealloc avatar dealloc commented on June 23, 2024

I encountered the same issue with sass-loader, it's rather frustrating when being pointed in the wrong direction regarding errors

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on June 23, 2024

Could you provide a repro, or even better contribute a test via a PR?
Thats would help me a great deal to fix this issue!

from friendly-errors-webpack-plugin.

dmnrmr avatar dmnrmr commented on June 23, 2024

Any progress on this?

from friendly-errors-webpack-plugin.

donnysim avatar donnysim commented on June 23, 2024

Just encountered this, from my debugging:

function isModuleNotFoundError (e) {
  const webpackError = e.webpackError || {};
  return webpackError.dependencies
    && webpackError.dependencies.length > 0
    && e.name === 'ModuleNotFoundError'
    && e.message.indexOf('Module not found') === 0;
}

it's not e.name === 'ModuleNotFoundError' it's webpackError.name === 'ModuleNotFoundError'.
Though it gets glued up at the top with other output, while the details are at the very bottom.

top

from friendly-errors-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.