Closed joe-rocko closed 4 years ago
I assume this will be an issue with react-script in general, but it seems to be a relatively new issue. Only thing i found referencing getPublicUrlOrPath is https://stackoverflow.com/questions/61652674/error-cannot-find-module-react-dev-utils-getpublicurlorpath
getPublicUrlOrPath
rolling back to "3.3.0-alpha-08" fixes the issue for now
"3.3.0-alpha-08"
❯ yarn storybook yarn run v1.22.4 $ start-storybook -p 9009 info @storybook/react v5.2.8 info info => Loading presets info => Loading presets info => Loading custom addons config. info => Using default Webpack setup. info => Loading create-react-app config. ERR! Error: Cannot find module 'react-dev-utils/getPublicUrlOrPath' ERR! Require stack: ERR! - <parent_dir>/node_modules/@react-workspaces/react-scripts/config/paths.js ERR! - <parent_dir>/node_modules/@react-workspaces/react-scripts/config/webpack.config.js ERR! - <parent_dir>/node_modules/@storybook/react/dist/server/cra-config.js ERR! - <parent_dir>/node_modules/@storybook/react/dist/server/framework-preset-cra.js ERR! - <parent_dir>/node_modules/@storybook/core/dist/server/presets.js ERR! - <parent_dir>/node_modules/@storybook/core/dist/server/config.js ERR! - <parent_dir>/node_modules/@storybook/core/dist/server/build-static.js ERR! - <parent_dir>/node_modules/@storybook/core/server.js ERR! - <parent_dir>/node_modules/@storybook/react/dist/server/index.js ERR! - <parent_dir>/node_modules/@storybook/react/bin/index.js ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:952:15) ERR! at Function.Module._load (internal/modules/cjs/loader.js:835:27) ERR! at Module.require (internal/modules/cjs/loader.js:1012:19) ERR! at require (internal/modules/cjs/helpers.js:72:18) ERR! at Object.<anonymous> (/Users/joe/ht/reactjs/node_modules/@react-workspaces/react-scripts/config/paths.js:14:28) ERR! at Module._compile (internal/modules/cjs/loader.js:1123:30) ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10) ERR! at Module.load (internal/modules/cjs/loader.js:972:32) ERR! at Function.Module._load (internal/modules/cjs/loader.js:872:14) ERR! at Module.require (internal/modules/cjs/loader.js:1012:19) ERR! at require (internal/modules/cjs/helpers.js:72:18) ERR! at Object.<anonymous> (/Users/joe/ht/reactjs/node_modules/@react-workspaces/react-scripts/config/webpack.config.js:29:15) ERR! at Module._compile (internal/modules/cjs/loader.js:1123:30) ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10) ERR! at Module.load (internal/modules/cjs/loader.js:972:32) ERR! at Function.Module._load (internal/modules/cjs/loader.js:872:14) ERR! Error: Cannot find module 'react-dev-utils/getPublicUrlOrPath'
I assume this will be an issue with react-script in general, but it seems to be a relatively new issue. Only thing i found referencing
getPublicUrlOrPath
is https://stackoverflow.com/questions/61652674/error-cannot-find-module-react-dev-utils-getpublicurlorpathrolling back to
"3.3.0-alpha-08"
fixes the issue for now