Cannot build react with webpack

When I run npm run build it is generating all the files, however it is exiting with error code 2. I thought it was probably permission issue, so it couldn’t create a folder. But no luck, even if there is a folder in circleci directly, webpack cannot put generated files into dist folder and fail with error.

I posted detailed info on stackoverflow.

Hi @abduraufsherkulov! Welcome to the forum! I see that the issue may have been resolved by setting your node environment to development. Are you still encountering this error?

Hi Anna, yes you are right, it was an environment issue. I answered my own question here

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.