Module not found Error when deployed on Heroku

前端 未结 5 1619
感动是毒
感动是毒 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 15:07

    I got it working.. Seems on Heroku Directory Import is not working.

    Hence, when I qualified my import with 'Index.ts' or 'Index.tsx' the bundle got created perfect and app started to work as below:

    From

    import * as Store from './ConfigureStore'
    

    To

    import * as Store from './ConfigureStore/Index';
    

    Might be helpful to someone in future.

提交回复
热议问题