You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to run the build command fails with webpack 5.88.2 fails with the following error message:
TypeError: Cannot read properties of null (reading 'options')
TypeError: Cannot read properties of null (reading 'options')
at commandBuild (G:\git\react-date-range\node_modules\react-styleguidist\lib\bin\styleguidist.js:115:42)
The exact same issue has been reported and closed here: identical to the issues #1786 && #2143 even though it still is present with the most current version
According to the webpack docs a compiler object is not returned with a callback: https://webpack.js.org/api/node
The issue can temporarily fixed by modifying the files in the bin directory:
Current behavior
Attempting to run the build command fails with webpack 5.88.2 fails with the following error message:
TypeError: Cannot read properties of null (reading 'options')
TypeError: Cannot read properties of null (reading 'options')
at commandBuild (G:\git\react-date-range\node_modules\react-styleguidist\lib\bin\styleguidist.js:115:42)
The exact same issue has been reported and closed here: identical to the issues #1786 && #2143 even though it still is present with the most current version
According to the webpack docs a compiler object is not returned with a callback: https://webpack.js.org/api/node
The issue can temporarily fixed by modifying the files in the bin directory:
react-styleguidist/src/scripts/build.ts
Line 9 in 0802ffb
Get rid of the callback:
and move the callback to the run command:
`
/lib/bin/styleguidist.js>commandBuild
The text was updated successfully, but these errors were encountered: