Error when using ember-data@3.16 with staticAddonTrees enabled
See original GitHub issueHi,
when enabling staticAddonTrees
in an app that uses ember-data@3.16.0
, I’m seeing an error being thrown:
Could not find module `@ember-data/model/-private` imported from `(require)`
data-version | ok |
---|---|
3.15.0 | 🆗 |
3.15.1 | 🆗 |
3.16.0 | 👎 |
3.17.0-beta.0 | 👎 |
Reproduction repo: https://github.com/makepanic/embroider-data-staticAddonTrees
If this issue is better tracked in the ember-data repo, I can reopen it there.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (1 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to get this working with
ember-data@3.17.0
.You can try the workaround with the following
ember-cli-build.js
:This change seemed to have an effect on the
DEBUG
directories. Forcefully including the-private
paths for the two modules did the following:My best guess is that the tooling doesn’t like that the
@ember-data/model
addon as well as the@ember-data/record-data
addon rollup the-private
module and then exclude that from the addon tree. I’m still learning how embroider works and I’m unable to suggest a fix better than my hack at this time. However, I hope this helps!Seems like the issue is still there. I’m on ember-data version 4.4. None of the solutions above help.