1 min readAug 9, 2018
here is my webpack2.X creatre configuration :
export default function(options) {
return {
entry: {
app: './src/index.js',
},
output: {
path: path.resolve(root, '../public_html/clientV2'),
filename: 'app.js',
publicPath: '/clientV2/'
},
resolve: {
root: path.resolve(root, './src'),
modules: [
path.resolve('./clientV2'),
'node_modules'
]
},
I installed npm I lodash used lodash module in my commponents.*(now its in my ‘node_modules’)
but after npm run compile I got this errors:
ERROR in ./src/components/ui/Select/index.js
Module not found: Error: Cannot resolve module ‘lodash/collection/map’ in /Users/farbodaprin/Desktop/UI/clientV2/src/components/ui/Select
@ ./src/components/ui/Select/index.js 13:11–43
ERROR in ./src/components/ui/Select/index.js
…
.
.