cornflourblue / react-signup-verification-boilerplate

React Boilerplate - Email Sign Up with Verification, Authentication & Forgot Password
https://jasonwatmore.com/post/2020/04/22/react-email-sign-up-with-verification-authentication-forgot-password
MIT License
201 stars 110 forks source link

Not able to resolve module #2

Open AmreeshTyagi opened 4 years ago

AmreeshTyagi commented 4 years ago

Thanks for providing such a simple & clean boilerplate. I am facing one issue.

webpack is not resolving Index.jsx for /accounts, /home folder. It is working fine for @/_helpers as it has index.js file.

Any idea to fix this issue?

AmreeshTyagi commented 4 years ago

It seems issue with file case. Not resolving Index.jsx but resolving index.jsx well. After fixing in my project, I found this blog as well. https://harikrishnakanchi.github.io/blog/devlog-webpack-config.html

Not sure how you have solved it on your machine. Please let me know.

AmreeshTyagi commented 4 years ago

Adding mainFiles: ['index', 'Index'] solved my problem.

resolve: { mainFiles: ['index', 'Index'], extensions: ['.js', '.jsx'],

Thanks.