Module not found Error when deployed on Heroku

前端 未结 5 1622
感动是毒
感动是毒 2021-02-14 14:09

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\

5条回答
  •  暖寄归人
    2021-02-14 14:58

    Is the missing module is a dev-dependancy? In such case you won't see any problem locally, whilst Heroku doesn't install dev-dependancies, and you get "Module not found" error. To fix this, simply uninstall the dev-dependancy and reinstall the module with --save flag

提交回复
热议问题