You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your repo in a react project which is bundled with webpack.
I was having an issue where I got the error :
./node_modules/moment/src/lib/locale/locales.js Module not found: Error: Can't resolve './locale' in '/path/to/my/project/node_modules/moment/src/lib/locale'
I wanted to let you know it was related to moment repo, and got it fixed by adding alias: { moment$: 'moment/moment.js', // https://github.com/moment/moment/issues/2979 },
Hi guys, thanks for the great work here
I'm using your repo in a react project which is bundled with webpack.
I was having an issue where I got the error :
./node_modules/moment/src/lib/locale/locales.js Module not found: Error: Can't resolve './locale' in '/path/to/my/project/node_modules/moment/src/lib/locale'
I wanted to let you know it was related to moment repo, and got it fixed by adding
alias: { moment$: 'moment/moment.js', // https://github.com/moment/moment/issues/2979 },
to
resolve
section of webpack configIt is discussed in here.
Please include this in your docs.
Have a nice day
The text was updated successfully, but these errors were encountered: