-
Notifications
You must be signed in to change notification settings - Fork 27
feathers client and requireJS #85
Comments
I thought the Browserify shim: {
feathers_client: {
exports: "feathers"
}
} |
I will try this tomorrow. Thanks. |
Same error. As soon as I require feathers in a module (even with the shim). Has feathers been used with steals? I might try that if you know it will work. |
@MarcGodard Can't webpack do what you need to get done? I have gotten that to work with feathers seamlessly. |
So does Browserify and StealJS. Nevertheless it should still work with RequireJS. |
So apparently I made this comment in the wrong issue so here again: It looks like the RequireJS problem can be fixed with https://github.com/rse/browserify-derequire so I'll give that a try later today. |
@fedevela never used webpack but this is an already existing large program. @daffl Will look into that. I hope its available with bower, because again, old large program that I am slowly updating. However, if you can tell me if you have seen it work nicely with stealsJS I will do that conversion next. |
I looked into the derequire, and this makes the package even more complicated. I will just skip feathers for now and use my regular server API. Thanks for all your help. |
It looks like the trick is to use the define(function (require) {
var feathers = require('feathers'); I put a working example based on the create-template at https://github.com/daffl/create-template. |
Hi I am loading feathersJS client into an app that uses requireJS and I am getting errors.
Error:
How I am loading it:
Then I just do like any other require module.
Am I missing something?
The text was updated successfully, but these errors were encountered: