Open o2bomb opened 3 years ago
same here
have the same issue
Same here!
Same here!
@size-limit/preset-small-lib
^6 has a depedency on webpack v5 but storybook requires v4, downgrading size limit resolved the issue.
can confirm that downgrading @size-limit/preset-small-lib to version 5.0.5 solved the problem.
Thanks !
Confirmed @TylerCarrington is correct.
I needed to downgrade both @size-limit/preset-small-lib
and size-limit
from 6.0.4 to 5.0.5.
Current Behavior
Just as the title says, I've been trying to create a new tsdx project using the react-with-storybook preset. When running
npm run storybook
, the following error occurs:Click to expand!
``` PS D:\Users\felix\Documents\My Projects\yong2-ui> npm run storybook > yong2-ui@0.1.0 storybook D:\Users\felix\Documents\My Projects\yong2-ui > start-storybook -p 6006 info @storybook/react v6.3.12 info info => Loading presets info => Loading 1 config file in "D:\Users\felix\Documents\My Projects\yong2-ui\.storybook" info => Loading 9 other files in "D:\Users\felix\Documents\My Projects\yong2-ui\.storybook" info => Adding stories defined in "D:\Users\felix\Documents\My Projects\yong2-ui\.storybook\main.js" info => Using implicit CSS loaders info => Using prebuilt manager info => Using default Webpack4 setup (node:16332) DeprecationWarning: Default PostCSS plugins are deprecated. When switching to '@storybook/addon-postcss', you will need to add your own plugins, such as 'postcss-flexbugs-fixes' and 'autoprefixer'. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins for details. (Use `node --trace-deprecation ...` to show where the warning was created) Starting type checking service... 0% compilingERR! TypeError: Cannot read property 'get' of undefined ERR! at D:\Users\felix\Documents\My Projects\yong2-ui\node_modules\webpack\lib\DefinePlugin.js:292:38 ERR! at SyncHook.eval [as call] (eval at create (D:\Users\felix\Documents\My Projects\yong2-ui\node_modules\@storybook\builder-webpack4\node_modules\tapable\lib\HookCodeFactory.js:19:10),Expected behavior
The storybook app runs as expected instead of crashing
Additional context
I have run
npm install
andnpm start
in a separate terminal.Your environment