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

storybook is not building #56

Closed
johninvicara opened this issue Jun 23, 2018 · 2 comments
Closed

storybook is not building #56

johninvicara opened this issue Jun 23, 2018 · 2 comments

Comments

@johninvicara
Copy link

I get an error after "npm install" and "npm run storybook":

compiler.hooks.compilation.tap(
	               ^

TypeError: Cannot read property 'compilation' of undefined

Not a big deal, but thought it might be due to some dev tool updates.
I cloned into a new directory, and just did the usual "npm install".

@CodyReichert
Copy link
Collaborator

I couldn't immediately reproduce, works on a fresh install for me.

Sounds kind of like this: storybookjs/storybook#3313

Maybe try and make sure all the packages are the right version, it's not using any globally installed packages, etc. What version of node/npm?

@johninvicara
Copy link
Author

OK, I have workarounds for anyone else who is affected.

When I do a 'git clone' and then just do 'npm run build', it fails with
TypeError: resolveFrom.silent is not a function.

This is fixed by wiping node_modules and deleting package-lock.json and a new npm install.

The Storybook issue is related to the item @CodyReichert reported above. I did an 'npm uninstall @storybook/react' and then installed the 4.0.0-alpha.10 version, and it is working now.

Thanks much for the pointer @CodyReichert !

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

No branches or pull requests

2 participants