Webapack 2 - It's no longer allowed to omit the '-loader' suffix when using loaders.
See original GitHub issueI keep getting this error It's no longer allowed to omit the '-loader' suffix when using loaders.
when trying either:
{
test: /.*\.(gif|png|jpe?g|svg)$/i,
loaders: [
'file-loader',
{
loader: 'image-webpack-loader',
query: {
progressive: true,
optimizationLevel: 7,
interlaced: false,
pngquant: {
quality: '65-90',
speed: 4
}
}
}
]
}
or just using loader: 'image-webpack-loader',
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
babeljs - I don't have build files for webpack - Stack Overflow
It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'babel-loader' instead of 'babel'.
Read more >loader' suffix when using loaders.解决办法- 腾讯云开发者社区
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'style-loader' instead of ...
Read more >为什么出现这种BUG - 慕课网
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'babel-loader' instead of 'babel'. ERROR...
Read more >Javascript – Webpack 2 issues with Semantic UI – iTecNote
Been struggling to get semantic-ui setup using Webpack 2. ... BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using...
Read more >Loaders - webpack
Loaders are transformations that are applied to the source code of a module. They allow you to pre-process files as you import or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The error “It’s no longer allowed to omit the ‘-loader’ suffix when using loaders.” is simply saying you need to append -loader where you are using loader, like if you are using babel as a loader then you need to put “babe-loader”
When I see the amount of upvotes on the comment above, I wonder what isn’t clear about the error message. Would this be better?