I am trying to deploy my app on Github to Heroku but getting error:
ERROR in ./src/Index.tsx Module not found: Error: Can\'t resolve \'./ConfigureStore\
For some reason i just added this
"heroku-prebuild": "export NPM_CONFIG_PRODUCTION=false; export NODE_ENV=; NPM_CONFIG_PRODUCTION=false NODE_ENV=development npm install --only=dev --dev",
"heroku-postbuild": "export NPM_CONFIG_PRODUCTION=true; export NODE_ENV=production;
I got it from this answer
by default, heroku removes your packages under devDependencies after build. Something in your app probably depends on the packages specified on devDependencies. The npm scripts above skips purging the devDependencies.