question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`sb migrate` doesn't work with npx

See original GitHub issue
$ npx -p @storybook/cli@5.2.0-beta.17 sb migrate storiesof-to-csf --glob "components/**/*.examples.js"
[BABEL] Note: The code generator has deoptimised the styling of /Users/jetbrains/.npm/_npx/50842/lib/node_modules/@storybook/cli/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
=> Applying storiesof-to-csf: 117 files
yarn run v1.17.3
error Command "jscodeshift" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

$ npx -v
6.9.0
$ node -v
v10.16.0
$ npm -v
6.9.0


Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
Hypnosphicommented, Sep 17, 2019

My workaround was to run the command on a parent level instead of project directory. Looks like it interfered with my local packages in some way

2reactions
elmppcommented, Nov 6, 2019

Had to strip out the typescript but worked ok (globally install sb and react however)

Read more comments on GitHub >

github_iconTop Results From Across the Web

@storybook/codemod - npm
The preferred way to run these codemods is via the CLI's migrate command. To get a list of available codemods: npx sb migrate...
Read more >
Install Storybook
Run this inside your existing project's root directory: # Add Storybook: npx storybook init. Copy. If you run into issues with the installation,...
Read more >
React Storybook throws error when using npx sb init
I'm using Ubuntu 20.04. I had the same issue. The problem was that I had installed node through snap.
Read more >
How I upgraded Storybook from 5.3.2 to 6.1.x - Samundra
Then run npm run storybook to check if this worked fine or not. ... got to another Github issue that hints to use...
Read more >
@storybook/builder-vite - NPM Package Overview - Socket
To automatically migrate your existing project, you can run. npx sb@next automigrate. To manually migrate: Remove storybook-builder-vite ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found