-
Notifications
You must be signed in to change notification settings - Fork 86
Lacking Webpack integration #19
Comments
Tried |
Plus one for this. I'm trying to use this with react, won't work, getting lots of web pack related errors. |
Seeing this as well... |
Hey, this seems to be a huge problem for us using react can you please show us how to fix this. Thanks |
Running into this too. Great library, but can't use it due to incompatibility with Webpack. |
Also ran into this trying to use in React App. Is there a workaround? |
Cant import |
Workaround is to go to node-modules (moment-holiday folder, file:moment-holiday.min.js) and replace: with this line:
|
@Anetk we don't really want to modify node_modules as most of the time we delete this before we commit js projects |
@kgrosvenor Fork the |
I have created a fork that is usable via webpack: https://github.com/joeldenning/moment-holiday. Installation: npm install --save https://github.com/joeldenning/moment-holiday\#1.5.2-webpack.0 |
@joeldenning thanks for the fork! Also you may want to update your documentation to:
per yarnpkg/yarn#2083 (comment) Cheers! |
The package cannot be imported in a Webpack setup:
import moment from 'moment-holiday
yieldsError: Cannot find module "."
. Arequire
calls does not succeed either. Could you add support for Webpack?P.S. Originally discovered in the context of
create-react-app
.The text was updated successfully, but these errors were encountered: