question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Import fetch from 'fetch'` not working w/ 3.2.8

See original GitHub issue

Running 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:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samselikoffcommented, Jun 6, 2018

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 a dependency in my addon).

Would a repro still help here?

0reactions
xg-wangcommented, Sep 7, 2018

If someone still sees this issue feel free to open another issue or comment to re-open.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found