Closed cosydney closed 3 years ago
Related issue on this thread: #30 CRA 3.3.0 - webpack unknown rule
@cosydney - I also experienced a similar issue today. Can you confirm what your NodeJS NODE_ENV variable is? When I set mine to production, I saw this error, but when I set it back to development, the issue disappeared.
You should be able to see this by typing node in the command prompt which will open the node shell and then type process.env.NODE_ENV.
@sadsa Thank you it's exactly what happened, I changed my NODE_ENV variable and this cause that issue !
Any update to this issue please?
On the latest version of react-scripts, craco and craco-less, it seems like production builds are silently failing to compile less files.
Running with craco start
will add our index.less to the app, but craco build
does not.
Running craco start
with NODE_ENV set to production highlights what I think might be the real issue?
The same exact behavior is also happening when I tried downgrading to: react-scripts@^3.2.0: 3.4.4 @craco/craco@^5.5.0: 5.9.0
Thanks, @sadsa! I've been struggling since yesterday, but just by setting NODE_ENV=development
, I managed to sort out this issue.
Hey,
I get a upgrade craco-less error but even though I updgrade it doesn't change anything. It is weird because it was working yesterday and I have not made any major changes since yesterday it just started throwing this error.
I'm using latest version of craco and craco-less:
Thanks