js-data-angular icon indicating copy to clipboard operation
js-data-angular copied to clipboard

Upgrading from 1.5 to 2.4 is causing some troubles

Open stijlfigurant opened this issue 10 years ago • 3 comments

I have a project that was using 1.5 and we felt it was time to upgrade. Am aware of the breaking changes and have handled those.

Added js-data & js-data-angular to the project and injecting it as 'js-data'.

Thrown error is:

TypeError: b.getEndpoint is not a function
    at b.e.value (application.js:10640)
    at b.e.value (application.js:10640)
    at application.js:10626
    at application.js:10429
    at n.a.$get.n.$eval (application.js:10443)
    at n.a.$get.n.$digest (application.js:10440)
    at n.a.$get.n.$apply (application.js:10443)
    at application.js:10330
    at Object.e [as invoke] (application.js:10349)
    at d (application.js:10329)

Tried adding in the js-data-http dependency, which resolved this issue, but causing issue further down the line as it doesn't pick up the interceptors that we push into $httpProvider, which makes sense. But we also would like to stick to $httpProvider as we're $http at a few places elsewhere in the project.

Maybe I am missing some configuration specifics, but the documentation is not giving me the right hints.

stijlfigurant avatar Oct 06 '15 13:10 stijlfigurant

The latest js-data is v2.5.0, the latest js-data-angular is v 3.1.0. Use those.

jmdobry avatar Oct 06 '15 15:10 jmdobry

Hi @jmdobry thanks for the reply.

We actually tried these versions as well, the exact same problem occurs.

stijlfigurant avatar Oct 06 '15 16:10 stijlfigurant

In that case, can you create a plunker that demonstrates the issue?

jmdobry avatar Oct 06 '15 16:10 jmdobry