`Import fetch from 'fetch'` not working w/ 3.2.8
See original GitHub issueRunning ember-fetch
in a Fastboot enabled app, we see the same issue mentioned in https://github.com/ember-cli/ember-fetch/issues/26
Running without Fastboot works fine.
The project is huge so I’m not sure if this is a straight-up an ember-fetch
issue, or a complex mix of other factors. We don’t have any dependencies relying on ember-network
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
require() of ES modules is not supported when importing node ...
node-fetch is an ESM-only module - you are not able to import it with require. We recommend you stay on v2 which is...
Read more >node-fetch - npm
Start using node-fetch in your project by running `npm i node-fetch`. ... ESM-only module - you are not able to import it with...
Read more >The Fetch API is finally coming to Node.js - LogRocket Blog
This means you're unable to import it with the Node require() function. The native Fetch API will make HTTP fetching in Node environments...
Read more >node-oracledb 5.5.0 Documentation for the Oracle Database ...
Oracle Database driver for Node.js maintained by Oracle Corp.
Read more >Service Workers - W3C
This specification also provides a fetch event, and a request and ... familiar with previous attempts to solve the offline problem have ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran into the same issue, the only way I could solve it was by having the host app install
ember-fetch
themselves (even though it’s listed as adependency
in my addon).Would a repro still help here?
If someone still sees this issue feel free to open another issue or comment to re-open.