Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to resolve module #2

Open
AmreeshTyagi opened this issue May 14, 2020 · 2 comments
Open

Not able to resolve module #2

AmreeshTyagi opened this issue May 14, 2020 · 2 comments

Comments

@AmreeshTyagi
Copy link

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
Copy link
Author

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
Copy link
Author

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

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

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant