-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug] Ember data doens't work with embroider starting with 4.8.x #8396
Comments
In |
I have checked again this problem and the fix for this issue is better to add I think we can do the same thing for |
Is this something we would need to do on a developers side while trying to update to the latest stable tag or is this more internal to embroider and ember-data. I recently asked about this issue and discord and was told to roll back to 4.7.3 for ED for the time being. Thank you! |
@ztjohns the bug for v4.9 must be fixed in ember-data (pr is already open)... after that, it should be possible to use with embroider without workaround in your project. For v4.10 we need changes in embroider + the fix in ember data. See embroider-build/embroider#1322 (comment) I'm atm on 4.4, because 4.7 has varios bugs, which will not be backportet from 4.8/4.9 (for example identifier bug + problem with more than 1500 records). Beginning with 4.5+ my app was always buggy, so i recommend you to stay on 4.4. When this bug is fixed in latest relesed ember-data version, i think that we should also backport all fixes to the lts 4.8. A workaround in your project for 4.9 could be to create the index.ts or replace the package check string while build process. I think more is not necessary. A workaround, maybe not perfect, but it should be work for 4.9.1:
|
related: #8296 (comment) :) |
the issue here is likely in embroider. These addons function as normal traditional ember addons. Its unclear why that would break in more recent embroider versions, especially when the embroider tests in this repo are passing... |
@runspired atm ember data has only one test for embroider if the build works, but it is no test for accessing to a model/store... right? Normally other packages are using the same test like without embroider, but ember data doens't do this atm... |
The same issue is blocking me from upgrading from 4.4 to 4.8 |
@mkszepp are you on discord? would love to sync up and see if we can get to the root of some of this |
pretty sure @embroider/test-setup is not compatible currently with EmberApp (only EmberAddon) and therefore isn't usable by us. See glimmerjs/glimmer.js#406 for an error encountered trying to setup that way. |
@runspired thank, confirm that it works without any workaround, package rules... in |
Description
There is not anymore possible to use ember-data with embroider, starting with 4.8.x.
In v4.9.1 we get this error:
Error
Error while processing route: index Assertion Failed: Expected store.createRecordDataFor to be implemented but it wasn't
data/packages/store/addon/-private/store-service.ts
Lines 2392 to 2406 in f8acfc1
This is because the private-build-infra
HAS_RECORD_DATA_PACKAGE
says, that the package@ember-data/record-data
is not present.data/packages/private-build-infra/addon/available-packages.ts
Line 5 in f8acfc1
Fix
We can fix this problem by replacing the line with
HAS_RECORD_DATA_PACKAGE: '@ember-data/record-data/-private',
The text was updated successfully, but these errors were encountered: