-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with Webpack #5
Comments
This is fixed in SpotOn's fork, which drops support for any loaders that are not CommonJS. Until the System Loader spec is finalized, this seems like a reasonable solution for Node/Browserify/Webpack folks. |
can't that fork be merged back here in the official plugin? |
We'd love to merge it upstream if it's wanted, but I kept it as a fork un-PR'd because I imagine it'd be impolite to PR such an invasive change (let alone one that breaks AMD support, for anyone still using that) |
Got it :) But @iv597, I want to share with you my 2 cents: we as developers have the duty to move the development world forward. Anyway, thanks for this great moment plugin! |
Surely we could just use UMD to satisfy all environments for the time being, with a much less invasive change to the root package? |
Guys, maybe it is time to merge changes? It is very disappointing when a public module doesn't work out of the box as expected. Such tradition drops shadow for entire NodeJS/JS ecosystem. If somebody knows, how and what to merge - please, create a PR. |
Hi, I'm trying to use SpotOn's fork in my react application, but am having issues trying to set it up. Application is bundled with webpack. I can't seem to open an issue in his repo there so my apologies if I should not be posting here. I thought the installation docs (I'm using npm) were too similar and so went with
and got the following error:
I then decided to install the package as a full dependency and this was the error I encountered:
I'm just starting out as a developer and would really appreciate any help I can get here. Thanks and my apologies again if this is not the place to be posting. |
It's been... a few years since I wrote that fork, and I've long since moved on from SpotOn, so I'm not in a position to really angle for that fork being merged (I think at this point @jimbattin is the probably best initial point of contact I know of about maintenance of that lib), but anyway, to address your specific issue, that was a documentation mismatch on my part back in the day (or more accurately, a failure to update the docs). SpotOnInc@e760391 added a thus you'll want to probably do const moment = require('moment');
const moment_round = require('moment-round');
moment_round.monkey(moment); Sorry I don't have better memory of why that workaround was added in the first place. Ninja edit: wow, two years ago tomorrow I wrote that commit - nice timing :) |
Thanks! Appreciate it and will try it out soonish =) |
I'm using webpack with ES6:
and receive an error:
|
Hi, super awesome plugin!
It fails when compiled with webpack though:
The text was updated successfully, but these errors were encountered: