I import whatwg-fetch ( https://github.com/github/fetch ) into my application
import fetch from 'whatwg-fetch';
For local development, I use webpack-dev-server . I got this error message:
test.js?ba55:67 Uncaught TypeError: (0 , _whatwgFetch.fetch) is not a function
It starts from this line:
fetch('/api/mydata', opts)
Why did the import fail?
source share