storybookjs / react-inspector

🔍 Power of Browser DevTools inspectors right inside your React app

Home Page:https://5d8cb665bc622e0020296079-dippbxxgcq.chromatic.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

storybook is not building

johninvicara opened this issue · comments

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".

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?

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 !