-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] pnpm install fails with "No matching version found for @storybook/addon-styling-webpack@^7.3.2" #2
[Bug] pnpm install fails with "No matching version found for @storybook/addon-styling-webpack@^7.3.2" #2
Comments
Hey @ar4hc 👋 You're not stupid at all! You just bumped into a rough edge that I missed 😭 I'm going to make a fix for the add command but in the mean time you can get around it by running this instead:
|
Thanks for the quick response, ... (And i needed to remove the first "@", but i assume that was just a typo?) pnpm dlx storybook@latest add @storybook/addon-styling-webpack@latest
.../share/pnpm/store/v3/tmp/dlx-9415 | +620 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.../share/pnpm/store/v3/tmp/dlx-9415 | Progress: resolved 641, reused 620, downloaded 0, added 620, done
Verifying @storybook/addon-styling-webpack
Installing @storybook/addon-styling-webpack@latest
Adding '@storybook/addon-styling-webpack@latest' to main.js addons field.
Running postinstall script for @storybook/addon-styling-webpack
Error running postinstall script for @storybook/addon-styling-webpack
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at normalizeSpawnArguments (node:child_process:547:3)
at Object.spawn (node:child_process:752:13)
at t (/Users/ar/src/lincare/classifier/classifier-gui/node_modules/.pnpm/@storybook+addon-styling-webpack@0.0.2_webpack@5.88.2/node_modules/@storybook/addon-styling-webpack/bin/postinstall.js:5:112)
at postinstallAddon (/Users/ar/.local/share/pnpm/store/v3/tmp/dlx-9415/node_modules/.pnpm/@storybook+cli@7.4.0/node_modules/@storybook/cli/dist/generate.js:172:834)
at add (/Users/ar/.local/share/pnpm/store/v3/tmp/dlx-9415/node_modules/.pnpm/@storybook+cli@7.4.0/node_modules/@storybook/cli/dist/generate.js:172:2421) {
code: 'ERR_INVALID_ARG_TYPE'
} i think he misses a file, and as it mention 'main.js' i assume something in '.storybook' , which has a main.js, preview.js and a preview-head.html (with just makes a And i'm on mac (intel) if that makes a difference... Any quick tips...? |
Hey @ar4hc 👋 Oops! yes, that was a typo. As for your new error, that should be solved with version |
But still the same error... :( $ pnpm dlx storybook@latest add @storybook/addon-styling-webpack
.../share/pnpm/store/v3/tmp/dlx-20359 | +620 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.../share/pnpm/store/v3/tmp/dlx-20359 | Progress: resolved 641, reused 619, downloaded 1, added 620, done
Verifying @storybook/addon-styling-webpack
Installing @storybook/addon-styling-webpack@^0.0.3
Adding '@storybook/addon-styling-webpack' to main.js addons field.
Running postinstall script for @storybook/addon-styling-webpack
Error running postinstall script for @storybook/addon-styling-webpack
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at normalizeSpawnArguments (node:child_process:547:3)
at Object.spawn (node:child_process:752:13)
at t (/Users/ar/src/lincare/classifier/classifier-gui/node_modules/.pnpm/@storybook+addon-styling-webpack@0.0.3_webpack@5.88.2/node_modules/@storybook/addon-styling-webpack/bin/postinstall.js:5:130)
at postinstallAddon (/Users/ar/.local/share/pnpm/store/v3/tmp/dlx-20359/node_modules/.pnpm/@storybook+cli@7.4.0/node_modules/@storybook/cli/dist/generate.js:172:834)
at add (/Users/ar/.local/share/pnpm/store/v3/tmp/dlx-20359/node_modules/.pnpm/@storybook+cli@7.4.0/node_modules/@storybook/cli/dist/generate.js:172:2421) {
code: 'ERR_INVALID_ARG_TYPE' probably cache problem, |
I'm encountering the same error, and I never had any version besides 0.0.3 installed, so it doesn't sound like a cache issue. |
Oh no! I'll dig in right now |
@wonkeythemonkey @ar4hc Are you by chance running this in a project without git? I was able to reproduce the error when I couldn't find a git repository and just pushed a fix for that |
Work-aroundLooks like there's still a problem between the storybook CLI and the config helper. To get you set up run the following command instead
|
I am running it in an environment where Storybook assets are being pulled together from different directories (long story), so even though there is a git repo, it's probably not where the addon expects it to be. Edit for clarity: I've tried running it both in and outside of Docker, with the same result. |
Nope, it is in a git repo... |
oh, and info i missed before... 😢
The work around tries to install
and then complains (correctly)
So i tried to install a webpack addon into a vite project... 🤦🏻 Sorry for wasting your time... |
Describe the bug
Trying to upgrade and just do just this:
the logfile mentioned looks like
Steps to reproduce the behavior
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots and/or logs
If applicable, add screenshots and/or logs to help explain your problem.
Environment
Additional context
i'm stupid...
Just tried to install this on top of an existing 7.0 installation...
The text was updated successfully, but these errors were encountered: