I have this structure of an app (node_modules
dir excluded from this list):
├── actions.js
├── bundle.js
├── components
│ ├── App.js
│ ├── Foote
changing templateUrl: ''
to template: ''
fixed it
I met this problem with typescript
but forgot to add ts
and tsx
suffix to resolve
entry.
module.exports = {
...
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
};
This does the job for me
Had the same issue with module not found. Turns out I had a component
import Picture from './Picture/Picture';
at the very bottom of all the imports. When I moved it below import React, { Component } from 'react';
, it worked.
Just add it to your config. Source: https://www.jumoel.com/2017/zero-to-webpack.html
externals: [ nodeExternals() ]
Your file structure says that folder name is Container
with a capital C. But you are trying to import it by container
with a lowercase c. You will need to change the import or the folder name because the paths are case sensitive.
I had a different problem. some of my includes were set to 'app/src/xxx/yyy' instead of '../xxx/yyy'