-
Notifications
You must be signed in to change notification settings - Fork 602
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
Incompatible with Ember 5.0.0 #2577
Comments
Please use |
Link to the changelog https://github.com/mainmatter/ember-simple-auth/releases/tag/6.0.0-rc.1 |
I can confirm that 6.0.0-rc.1 works fine. Looking forward to the release. |
I'm getting "Could not find module This is with Ember 5 and embroider. |
@BobrImperator No, not in this project. |
@bracke It's a tricky issue. However it could also be some issue with ESA not being an actual V2 addon. |
@BobrImperator the error happens in our session service when importing the basesessionservice, are we doing anything wrong? import { service } from '@ember/service';
import BaseSessionService from 'ember-simple-auth/services/session';
export default class SessionService extends BaseSessionService {
@service currentUser;
@service router;
async handleAuthentication() {
super.handleAuthentication(...arguments);
try {
await this.currentUser.load();
} catch (err) {
await this.invalidate();
}
}
} |
Thanks for the snippet. |
@BobrImperator
So the problem is really a general inability to access the 'ember-simple-auth' namespace/folder. |
Did you get any further? Any idea how we can resolve this? |
It's very likely it's happening because ESA is still a V1 addon and V1 addons can't be statically analyzed. WIP #2604 |
I have tried to use the "v2-addon" branch, but it does not seem to make any difference. |
The branch might not be functioning properly yet. Also I've seen on some threads that a lot of folks are downgrading their @embroider deps to "@embroider/core": "~3.0.0",
"@embroider/compat": "~3.0.0",
"@embroider/webpack": "~3.0.0", Like Nullvox proposed to do here https://github.com/mainmatter/ember-simple-auth/pull/2606/files#diff-c88af450d41d3281997faafe7ac13e280ae5840c6b81f68cc395c2a20d7e4830R154 Both the downgrade and using the specific branch could be worth a shot. If you could try that then that'd help us a lot 👍 Also I'm not sure how installing through git works anymore with the rollup, so please make sure to clone the repo, check out the branch, compile the dist and link |
I'm getting ember-cookies errors myself
|
Seems that updating embroider fixes that for me. |
Hi @BobrImperator, Do you know when 6.0.0 will be released ? |
Ember-simple-auth 6.0.0 released Sorry for keeping you waiting :) Feel free to re-open if the is actually not fixed. |
Ember-simple-auth 5.0.0 is incompatible with ember-cli 5.0.0
it requires ember source 3.8 || 4, while ember-cli 5's ember-source is ~5.0.0
If we
npm install ember-simple-auth --force
it will install it, but the browser will raise missing imports errors. e.g. Could not find module@ember/polyfills
imported fromember-simple-auth/utils/assign
.The text was updated successfully, but these errors were encountered: