Skip to content

Can I really use it with ember@3.28? #10453

@ro0gr

Description

@ro0gr

I’m currently exploring options to start migrating a number of Ember 3.28 apps to use Warp Drive. The apps use "ember-data-model-fragments", so, based on what I’ve read in the docs, I should try the two-store approach first.

To validate this, I created a plain Ember 3.28 app: warp-drive-test. However, when I install Warp Drive dependencies and run import '@warp-drive/ember/install';, I encounter build errors:

ERROR in ./node_modules/@warp-drive/ember/dist/install.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: /home/runner/work/warp-drive-test/warp-drive-test/node_modules/@warp-drive/ember/dist/install.js: Cannot read properties of undefined (reading 'deprecations')
    at get value [as value] (/home/runner/work/warp-drive-test/warp-drive-test/node_modules/@embroider/macros/src/babel/evaluate-json.js:135:57)
...

Reproduction: https://github.com/ro0gr/warp-drive-test/actions/runs/21084492871/job/60645081471#step:5:30

I also tried enabling Embroider with Webpack, but I encountered a similar build failure: https://github.com/ro0gr/warp-drive-test/actions/runs/21085162748/job/60647054363#step:5:70

As a last resort, I tried Embroider with Vite: ro0gr/warp-drive-test#2. However, the Vite setup prohibits using "ember-fetch", and I don’t know how to make "ember-data" work without it. Is there a workaround? Even if that's the case, I’d still like to know if it’s possible to use this library with the classical build to minimize migration effort. Maybe I'm supposed to start with some older "warp-drive" version, or do I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions