Can't resolve './locale' using react-moment
claide opened this issue · comments
Francis Claide Magallen commented
Had an issue when I run develop script.
package.json
"moment": "^2.25.1",
"react-moment": "^0.9.7"
jsx component
import Moment from 'react-moment'
throws
warn Module not found: Error: Can't resolve './locale' in 'D:\Projects\development\sample-site\node_modules\moment\src\lib\locale'
Francis Claide Magallen commented
rolling back to 2.24.0 fixed the issue. Closing this ticket