Could not find module `fetch`
Uysim opened this issue · 10 comments
It happen when I upgrade ember-cli to lastest verions
Could not find module `fetch` imported from `ember-simple-auth-token/authenticators/
Packages
ember-cli: 3.5.1
ember-cli-fastboot: 2.0.0
ember-simple-auth-token: 4.0.5
I see you are using fastboot, have you added node-fetch
to your fastbootDependencies
as described here?
@fenichelar Yes I did
I also try to import fetch from 'fetch'
in my application model. It is fine
Can you provide an example application that demonstrates the issue? I'm not able to reproduce it.
I try to reproduce it at https://github.com/Uysim/reproduce-fetch-module
I don't know whether it is relate to this https://github.com/ember-cli/ember-fetch#use-with-fastboot
Looks like it's related to
ember-cli/ember-fetch#62
and
mainmatter/ember-simple-auth#1138
And going from the end of that second issue, install ember-fetch
separately just using
ember install ember-fetch
seems to make it work nicely.
@gregorymark Yes I fixed it by to ember install ember-fetch. Thank you
``