Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Error: Cannot find module 'node-fetch' #10

Closed
kellyselden opened this issue Sep 23, 2016 · 1 comment
Closed

Error: Cannot find module 'node-fetch' #10

kellyselden opened this issue Sep 23, 2016 · 1 comment

Comments

@kellyselden
Copy link
Contributor

There was an error running your app in fastboot. More info about the error: 
 Error: Cannot find module 'node-fetch'

I'm not convinced this is a bug in this repo. I'm using ember-cli-moment-shim successfully in fastboot and the moment require is working. I don't know what's different about this addon that the node-fetch won't resolve. I've read through all the code here and couldn't find the issue. Do you have any pointers for me? I've tried npm i node-fetch to flatten the module, but that didn't help.

npm ls node-fetch
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] 
├─┬ [email protected]
│ └── [email protected] 
└── [email protected]  extraneous
@kellyselden
Copy link
Contributor Author

This was an issue of not running npm install in the "dist" folder. I missed it in the docs, reason here ember-fastboot/fastboot-website#47

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

No branches or pull requests

1 participant