Skip to content
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-simple-auth can't resolve 'session' type #331

Closed
mikkopaderes opened this issue Feb 16, 2019 · 6 comments
Closed

ember-simple-auth can't resolve 'session' type #331

mikkopaderes opened this issue Feb 16, 2019 · 6 comments

Comments

@mikkopaderes
Copy link

mikkopaderes commented Feb 16, 2019

This is for the module unification environment.

Error while processing route: index Assertion Failed: 'session' is not a recognized type Error: Assertion Failed: 'session' is not a recognized type

This is the code that causes the problem. session:main is being registered in an initializer here.

I'm not sure what the problem is but it seems session:main isn't being registered properly.

@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2019

In MU you need to tweak the config settings, I don't recall the exact incantation ATM but @NullVoxPopuli / @ppcano / @buschtoens likely do...

@NullVoxPopuli
Copy link
Contributor

@mikkopaderes you'll want to tweak the config similarly like this: https://github.com/NullVoxPopuli/emberclear/blob/master/packages/frontend/src/resolver.js#L13
I haven't personally used e-s-a, so.. I can't help you with what specifically to add to the config

@ppcano
Copy link
Contributor

ppcano commented Feb 16, 2019

This comment emberjs/ember.js#17234 (comment) may be useful

@mikkopaderes
Copy link
Author

@NullVoxPopuli interesting. I didn't know there was a config for that. I actually had to edit the ember-resolver addon itself from inside the node_modules folder temporarily. Will try that out..

@mikkopaderes
Copy link
Author

It works.

moduleConfig.types = Object.assign(moduleConfig.types, {
  // ember-simple-auth
  'session': { definitiveCollection: 'session' },
  'session-store': { definitiveCollection: 'session-store' },
});

Resolving this..

@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2019

Thank you all for helping out!

We definitely need to get an actual API togeyther that makes this a bit better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants