Coder Social home page Coder Social logo

Comments (10)

MatteoGabriele avatar MatteoGabriele commented on July 22, 2024 1

I'm working in a private repo and I can't make it public, but I should be able to arrange something that works the same way and publish it somewhere else.
Thanks!

from friendly-errors-webpack-plugin.

MatteoGabriele avatar MatteoGabriele commented on July 22, 2024 1

I've just created a very simple repo with a webpack structure that shows this issue.
Just install node packages and run npm run dev. I wrote some code that on purpose shows up in the terminal because the linter doesn't allow me to write it.

The code that comes from the vue-loader has a long file path due to its loader that needs to be written as a single string, so combining long loaders, that's the result.

Repository: https://github.com/MatteoGabriele/webpack-dev-server-test/tree/master

image 2017-01-15 at 10 53 17 pm

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on July 22, 2024 1

Should be fixed in 1.1.3.
I will keep this issue open because I could not include a simple repro of your problem.

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on July 22, 2024 1

Thanks for your involvement @MatteoGabriele, really appreciated.

I suspect the "stack trace" is the origin of the error. It is unclear in which context webpack provides this information.
We decided to include the origin, if available, in the default formatter but we could decide not to in case of a lint error.

In all cases, simple repros are really important as webpack is kind of a black box we have to build on.

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on July 22, 2024

Yes it should be!
Would you be willing to include a repro or, even better, a test so I can have a look ?

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on July 22, 2024

I mean your repro was superb (thanks btw!), but I don't want to include the whole vue setup in the tests so I have to look for even simpler

from friendly-errors-webpack-plugin.

MatteoGabriele avatar MatteoGabriele commented on July 22, 2024

Thanks a lot!
I've added vue because was easier to copy paste here and there from the project i was working on. It's working now, the only thing that is still there is that strange list of files at the end, where the original long string is still listed, but i don't know if it's the plugin or some setting of webpack that i have to remove: what you think?

image 2017-01-16 at 7 54 00 am

from friendly-errors-webpack-plugin.

MatteoGabriele avatar MatteoGabriele commented on July 22, 2024

Actually on the repo I wrote for this issue, everything works perfectly, not even that kind of stack trace at the bottom. But in the project I'm writing that part is there. Let me know if you have any idea, in the meantime I will write a less heavy repo to see if i can reproduce it.

from friendly-errors-webpack-plugin.

MatteoGabriele avatar MatteoGabriele commented on July 22, 2024

Yeah would be nice to have an optional stack trace log.
Thanks again.

from friendly-errors-webpack-plugin.

MatteoGabriele avatar MatteoGabriele commented on July 22, 2024

Nothing I tried several setup but, can't reproduce the errors without adding vue, maybe it was the culprit. Let me know just if you are going to make the stack trace optional, that would be nice.

Thanks again for your quick updates.

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.