Comments (10)
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.
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
from friendly-errors-webpack-plugin.
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.
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.
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.
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.
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?
from friendly-errors-webpack-plugin.
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.
Yeah would be nice to have an optional stack trace log.
Thanks again.
from friendly-errors-webpack-plugin.
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)
- Blank error when only webpackError property populated
- module is undefined
- show time even if warning appears
- Missing Error Filtering Feature
- Stylelint output does not show the name of the file where warnings occur
- Cannot read property 'request' of undefined at transform HOT 2
- Cannot read property 'some' of undefined
- Missing error report for failed compilation
- Can this plugin work with ForkTsChecker plugin when clearConsole is true? HOT 7
- Is 2.x ready for release? HOT 2
- compilationSuccessInfo.message not show HOT 1
- Peer Dependency issue with Webpack v5.x HOT 4
- Type 'FriendlyErrorsWebpackPlugin' is not assignable to type 'WebpackPluginInstance'.
- Forget update the Readme on NPM HOT 1
- Cannot read property 'startsWith' of undefined HOT 2
- should not output warning when the count of warnings is 0 HOT 4
- Support for displaying compilationSuccessInfo only on initial compilation HOT 1
- Does not work with Node.js v12 HOT 2
- recommending a different eslint-loader formatter in the docs
- Compilation is always succesful when it should not be HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from friendly-errors-webpack-plugin.