-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
@ember/renderer work in 2.8.0/2.8.1 not compatible with prior ember releases #1232
Comments
cc @cafreeman and @rwjblue. Likely the version check is trolling. |
@ember/[email protected] also breaks in ember-simple-auth for @ember/test-helpers@~2.7.0 seems to work correctly.
|
Same error |
Looks like this is a common issue for monorepo setups, which is caused by npm/yarn installation specifics. There is a nice explanation of the issue embroider-build/embroider#1169 (comment) In my case, I've worked it around by switching from npm to pnpm. Also sounds like for yarn the |
@ro0gr I'm not sure that's the case here. In data we don't have any competing versions to worry about yet still end up with this error. |
@runspired ya, sure. I didn't have any conflicting versions declared explicitly as well. ember-test-helpers/package.json Lines 39 to 41 in 02360aa
And seems like this causes some of package managers to install the latest possible ember-source version to the root node_modules, which in its turn makes embroider/macros's dependencySatisfies( to ignore the test-app's ember-source version, and use one from the root node_modules(like explained in the embroider thread).
You can ensure if that's the case for you by checking all the installed ember-source copies in the monorepo setup, like
or similar. |
Temporary measure. Don't really want to release while this dependency is pinned with a ~ as this is a declared dependency of the included test helpers. But also uncomfortable with the CI failing for ember 3.28. Reference: emberjs/ember-test-helpers/issues/1232
Allows us to continue to test Ember 3.28 via ember try. I've been struggling with that particular build since: emberjs/ember-test-helpers#1232 To my best understanding a quirk in yarn's (incorrect) handling of peerDependencies with monorepo causes incorrect resolution of ember-source. I wasn't able to find a nohoist config with yarn which worked, although I'm open to suggestions. As suggested in this comment pnpm handles peerDeps more correctly, and provides the dependenciesMeta.*.injected option. This issue has been blocking the release of ember-file-upload because this addon includes @ember/test-helpers in its own dependencies (we ship custom test helpers which depend on that package). I don't want to cut a release with a restrictive @ember/test-helpers dependency version.
I also encountered the issue by running 3.28 and 4.4 LTS I didn't want to solve it by migrating to /* config/ember-try.js */
module.exports = async function () {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-3.28',
npm: {
devDependencies: {
'@ember/test-helpers': '2.7.0',
'@types/ember__test-helpers': '2.8.3',
'@types/ember-qunit': '6.1.1',
'ember-qunit': '6.0.0',
'ember-source': '~3.28.0',
},
},
},
{
name: 'ember-lts-4.4',
npm: {
devDependencies: {
'@ember/test-helpers': '2.7.0',
'@types/ember__test-helpers': '2.8.3',
'@types/ember-qunit': '6.1.1',
'ember-qunit': '6.0.0',
'ember-source': '~4.4.0',
},
},
},
/* ... */
};
}; |
Resulting error in both 4.4 LTS and 3.28 LTS
At a minimum this should have been a major version, but given it doesn't support either LTS likelywe should fix.The text was updated successfully, but these errors were encountered: