I have this structure of an app (node_modules dir excluded from this list):
node_modules
├── actions.js ├── bundle.js ├── components │ ├── App.js │ ├── Foote
I met this problem with typescript but forgot to add ts and tsx suffix to resolve entry.
typescript
ts
tsx
resolve
module.exports = { ... resolve: { extensions: ['.js', '.jsx', '.ts', '.tsx'], }, };
This does the job for me