-
Notifications
You must be signed in to change notification settings - Fork 40
jsonapi-datastore does not work with requirejs #20
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
Comments
P.S. With the above workaround I also have to change my require slightly to be...
|
Hi @theirishpenguin, thanks for the feedback – I've been fairly busy lately. If you find some time, would you mind issuing a PR to fix the situation? |
@beauby Ya, happy to PR it. Or @berlincount if this is better solved using #15 and #16 then I will not bother PR'ing this? |
well, they are closed in master - verify whether they fix this for you :) |
Is this fixed? |
Hi, sorry somehow I missed your last message @berlincount. @beauby, thanks for the follow up. I've just retested master but when I try do the require with...
... I see that JsonApiDataStore is undefined and this causes and error later in the code when I try to instantiate a JsonApiDataStore instance. I've since moved away from using requirejs on my main projects so this issue is less important for me than it used to be. However I am happy to help debug this. |
I'm using jsonapi-datastore (master branch at commit 12dc63e) via requirejs and I have to implement the following workaround to get it to work in jsonapi-datastore/dist/jsonapi-datastore.js...
This hack is based on http://stackoverflow.com/a/29655291.
I'm not sure if this is the best solution to this problem so I haven't put it in a PR. Would adding this block to the end of jsonapi-datastore.js make sense?
The text was updated successfully, but these errors were encountered: