Skip to content

Upgrading from 1.5 to 2.4 is causing some troubles #344

@stijlfigurant

Description

@stijlfigurant

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions