Skip to content
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

Cannot find module 'babel-plugin-transform-runtime' #1876

Closed
Ezku opened this issue Sep 21, 2017 · 3 comments
Closed

Cannot find module 'babel-plugin-transform-runtime' #1876

Ezku opened this issue Sep 21, 2017 · 3 comments

Comments

@Ezku
Copy link

Ezku commented Sep 21, 2017

EDIT: Duplicate of #1729

Hello,

I'm upgrading to webpack 3, and for that to happen I also need to upgrade @storybook/react from 3.1.3 to 3.2.8. After the upgrade, storybook fails to find babel-plugin-transform-runtime.

Error: Cannot find module 'babel-plugin-transform-runtime'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.resolve (internal/module.js:27:19)
    at Object.<anonymous> (app/node_modules/@storybook/react/dist/server/config/babel.js:12:77)

The module seems to be missing from the dependency tree altogether.

storybook/[email protected] node_modules/@storybook/react
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── @storybook/[email protected]
├── [email protected]
├── [email protected]
├── @storybook/[email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── @storybook/[email protected] (@storybook/[email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── @storybook/[email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── @storybook/[email protected] ([email protected], [email protected], [email protected], @storybook/[email protected], [email protected], [email protected], @hypnosphi/[email protected], @storybook/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

Installing babel-plugin-transform-runtime on the app level had no effect. Neither did uninstalling and reinstalling @storybook/react. Any suggestions on what I could do?

𝚫  git:(upgrade-webpack-3) ✗ npm -v
2.15.11
𝚫  git:(upgrade-webpack-3) ✗ node -v
v6.4.0

Thanks,
Eevert

@valscion
Copy link
Contributor

I think this is precisely #1729 that was fixed by #1848. There just hasn't been any new storybook release for 3.2.x versions

@Hypnosphi
Copy link
Member

Now it's released as 3.2.10

@valscion
Copy link
Contributor

Thank you! 💞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants