ReactJS-AdminLTE icon indicating copy to clipboard operation
ReactJS-AdminLTE copied to clipboard

WARNING in ./public/plugins/moment/moment.js. Module not found: Error: Cannot resolve 'file' or 'directory' ./locale

Open yuklia opened this issue 8 years ago • 1 comments

The problem mentioned above is about require('./locale' + name) statement included in the file moment/moment/moment.min.js It is not necessary anymore because all locales are already included in this file itself.

Unfortunately, webpack tries to resolve all require statements - therefore this warning.

yuklia avatar Jun 01 '17 13:06 yuklia

here is solution new webpack.IgnorePlugin(/\.\/locale$/)

yuklia avatar Jun 01 '17 13:06 yuklia