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
But upon npm start (craco start), I am greeted with the following error,
(node:16620) UnhandledPromiseRejectionWarning: Error: Found an unhandled loader in the custom webpack config: E:\project\node_modules\style-loader\dist\cjs.js
I looked at the source and it seems to be checking the environment variable,
My
NODE_ENV
is set tocustom
. I'm trying to set up ant design in a CRA project. I'm following the guide here, https://ant.design/docs/react/use-with-create-react-app. I created acraco.config.js
file like the following,But upon
npm start
(craco start), I am greeted with the following error,I looked at the source and it seems to be checking the environment variable,
After I set my
NODE_ENV
todevelopment
this error is gone.I am not exactly sure what caused the issue. So my question is does craco-less not support setting a custom value to
NODE_ENV
?The text was updated successfully, but these errors were encountered: