Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

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

Open
yuklia opened this issue Jun 1, 2017 · 1 comment

Comments

@yuklia
Copy link

yuklia commented Jun 1, 2017

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
Copy link
Author

yuklia commented Jun 1, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants