-
-
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
Could not find module @ember-data/debug
imported from ember-data/index
#7053
Comments
How are you serving it up for fastboot? Debug can be excluded from production builds in some cases, though by default it ships if the parent addon is ember-data |
I'm using fastboot-app-server with express js. It's probably being excluded, but if it is optional, why is ember data trying to import it? |
If your app uses the
It is possible there is a broken check but given the lack of reports outside of this one I currently suspect there is either (1) something weird about the build-env for fastboot-app-server or (2) something weird in how your app specifies the dependency or (3) something bad being done by the app/an add-on. FactoryGuy is a common culprit for such things. |
I'm seeing precisely the same problem on two different apps after upgrading. One uses Fastboot and the other doesn't. In both cases, the development build has no issues. Also, in both cases, reverting to 3.15.1 resolves the problem. I know this description probably doesn't help, so I'll try to find the time to get a bare-bones repro and post it here when I have it. |
We are having same issue after update to 3.16. To workaround the issue if you are using Ember-Data in your app in
|
@enterpub are you saying your app has that config or has commented out that config? |
@runspired , sorry for misunderstanding. I meant first my app had |
@enterpub thanks! that likely tells me the issue is that the above flag doesn't work properly when the |
Likely all that needs to be changed is for this line: data/packages/-ember-data/addon/index.js Line 21 in 1f80a43
And this line: data/packages/-ember-data/addon/index.js Line 88 in 1f80a43
To be lazily computed and wrapped in a package check. e.g. if (HAS_DEBUG_PACKAGE) {
DS.DebugAdapter = require('@ember/debug').default;
} |
Description
When I update my ember-data to 3.16.0 and deploy to a production env the error Could not find module
@ember-data/debug
imported fromember-data/index
happen once I try to access the page through a browser.Maybe it is a compatibility issue with fastboot since the error is being trowed by node and not by the browser.
When I rollback to 3.15.0 it works as expected.
Versions
I've tried to do a reproduction repository, but the error happens only on production env with a node app serving the app with fastboot.
The text was updated successfully, but these errors were encountered: