WARNING in ./public/plugins/moment/moment.js. Module not found: Error: Cannot resolve 'file' or 'directory' ./locale
yuklia opened this issue · comments
Yuliia Kostrikova commented
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.
Yuliia Kostrikova commented
here is solution
new webpack.IgnorePlugin(/\.\/locale$/)