Description
Give more information about your doubt
I was updated with yarn add docz@next and package.json like this:
"docz": "^1.0.0-rc.7",
"docz-plugin-css": "^0.11.0",
"docz-theme-default": "^1.0.0-rc.7",
but when I try yarn install, there will be a warning:
warning Lockfile has incorrect entry for "[email protected]+2bae93b5". Ignoring it.
Couldn't find any versions for "docz" that matches "1.0.0-rc.21+2bae93b5"
? Please choose a version of "docz" from this list: (Use arrow keys)
when I run yarn install each time, I have to select the version, is there any way to solve this?
As a temporary workaround you can use the resolutions field in your package.json to tell yarn/npm to ignore the requested version and only use a particular version.
see below for an example
{
"name": "your-package-name",
"resolutions": {
"**/docz-core": "1.0.0-rc.7",
"**/docz": "1.0.0-rc.7"
},
This beahviour files is documented at the following link
https://yarnpkg.com/lang/en/docs/selective-version-resolutions/
Thanks! this option helps me a lot!
Can I close this @GFwer ?
This is happening just with npm, it's a problem related to the way of npm resolve dependencies. Another solution keeps your docz dependencies like that:
"devDependencies": {
"docz": "1.0.0-rc.7",
"docz-core": "1.0.0-rc.7",
"docz-theme-default": "1.0.0-rc.7",
},
Yes, thanks a lot!
Most helpful comment
As a temporary workaround you can use the resolutions field in your
package.jsonto tell yarn/npm to ignore the requested version and only use a particular version.see below for an example
This beahviour files is documented at the following link
https://yarnpkg.com/lang/en/docs/selective-version-resolutions/