addon-styling icon indicating copy to clipboard operation
addon-styling copied to clipboard

[Bug] Some DevDependencies are installed as dependencies. This can lead to conflicts if, for example, prettier 3.0.0 is used

Open salzpate opened this issue 11 months ago • 9 comments

Describe the bug

Some DevDependencies are installed as dependencies. This can lead to conflicts if, for example, prettier 3.0.0 is used.

Steps to reproduce the behavior

  1. Create a sub project with a peer dependency of prettier@^3.0.0
  2. Create a main project
  3. Add "@storybook/addon-styling@latest" as dev dependency to the main project
    1. Add "prettier@^3.0.0" as dev dependency to the main project
  4. Add the created sub project to the main project
  5. Tryout an npm install

Expected behavior

Add Dev Dependencies as devDependencies:

"devDependencies": { "@babel/template": "^7.20.7", "@babel/types": "^7.21.5",
"css-loader": "^6.7.3", "less-loader": "^11.1.0", "postcss-loader": "^7.2.4", "prettier": "^2.8.0", "resolve-url-loader": "^5.0.0", "sass-loader": "^13.2.2", "style-loader": "^3.3.2" }

Screenshots and/or logs

Found: [email protected] npm ERR! node_modules/prettier npm ERR! dev prettier@"^2.8.8" from the root project npm ERR! prettier@"^2.8.0" from @storybook/[email protected]

Environment

  • Node.js version: [e.g. v18.12.0]
  • NPM version: [e.g. 9.7.2]

salzpate avatar Aug 02 '23 09:08 salzpate