Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Webpack 4: incorrect peer dependency #122

Closed
gustavovnicius opened this issue Mar 28, 2018 · 5 comments
Closed

Webpack 4: incorrect peer dependency #122

gustavovnicius opened this issue Mar 28, 2018 · 5 comments

Comments

@gustavovnicius
Copy link

When using url-loader with webpack 4 it gives this warning:

warning "url-loader > [email protected]" has incorrect peer dependency "webpack@^2.0.0 || ^3.0.0".

It's similar to this one: webpack-contrib/style-loader#307

@alexander-akait
Copy link
Member

@gustavovnicius npm/yarn cache clear && npm install, also check you lock files.

@asfernandes
Copy link

url-loader 1.0.1 is using schema-utils 0.4.3 which has the dependency "webpack@^2.0.0 || ^3.0.0". Even cleaning the cache the problem is happening.

Shouldn't you update to schema-utils 0.4.5?

@nypinstripes
Copy link

nypinstripes commented May 26, 2018

@gustavovnicius @evilebottnawi please update schema-utils dep to 0.4.5 which has the webpack 4 dependency fix for:

warning "url-loader > [email protected]" has incorrect peer dependency "webpack@^2.0.0 || ^3.0.0".

"peerDependencies": {
     "webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"	     "webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"
 }

screen shot 2018-05-26 at 12 41 58 am

https://yarnpkg.com/en/package/schema-utils

@nypinstripes
Copy link

@evilebottnawi @michael-ciniawsky maybe this could be re-opened. thanks.

@alexander-akait
Copy link
Member

@nypinstripes all already updates, just update you deps and lock file

manoldonev added a commit to NativeScript/nativescript-dev-webpack that referenced this issue Jun 21, 2018
When tns-creating an app that depends on latest nativescript-dev-webpack you can see the following in the output:
```
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
```

Based on webpack-contrib/url-loader#122 It seems [email protected] has the webpack 4 dependency fix.
sis0k0 pushed a commit to NativeScript/nativescript-dev-webpack that referenced this issue Jun 22, 2018
When tns-creating an app that depends on latest nativescript-dev-webpack you can see the following in the output:
```
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
```

Based on webpack-contrib/url-loader#122 It seems [email protected] has the webpack 4 dependency fix.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants