Open ulisesbocchio opened 7 years ago
I get a ModuleNotFoundError: Module not found: Error: Cannot resolve module 'alt-utils' when I try to use this library.
ModuleNotFoundError: Module not found: Error: Cannot resolve module 'alt-utils'
I'm importing it connectToStores like this:
connectToStores
import connectToStores from 'alt-utils/lib/connectToStores';
And this is my resolver webpack config:
resolve: { modulesDirectories: ['./src', './node_modules'], extensions: ['','.js', '.jsx', '.json'] },
Any idea how can I get this to work? All other imports work as expected
EDIT: The import seems not to be a problem, but the webpack entry configuration:
entry: { fetch: 'whatwg-fetch', app: path.join(__dirname, './src/index.jsx'), vendor: [ 'react', 'react-dom', 'react-router', 'react-router-bootstrap', 'react-bootstrap', 'react-bootstrap-date-picker', 'react-select', 'react-tagsinput', 'react-lazyload', 'react-loader', 'react-dropzone', 'react-pdf-js', 'react-waypoint', 'alt', 'alt-utils', 'alt-container', 'moment', 'lodash', 'three', 'js-cookie' ] }
When alt-utils is in that list I get the ModuleNotFoundError error
ModuleNotFoundError
I get a
ModuleNotFoundError: Module not found: Error: Cannot resolve module 'alt-utils'
when I try to use this library.I'm importing it
connectToStores
like this:And this is my resolver webpack config:
Any idea how can I get this to work? All other imports work as expected
EDIT: The import seems not to be a problem, but the webpack entry configuration:
When alt-utils is in that list I get the
ModuleNotFoundError
error