Knockout template page "Fetch data" giving "fetch is undefined" JS exception #1548

Closed
opened 2025-08-09 17:20:34 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @Gimly on 6/25/2016

Using the Knockout template, the "Fetch data" page doesn't work. It shows "Loading..." and no data is loaded. The SampleDataController function is never called either.

In the browser console, there is a JS exception that says : 'fetch' is undefined.

Edit: Managed to fix it by adding "isomorphic-fetch": "^2.2.1" to package.json but I'm not sure this is the correct way to do it.

*Originally created by @Gimly on 6/25/2016* Using the Knockout template, the "Fetch data" page doesn't work. It shows "Loading..." and no data is loaded. The SampleDataController function is never called either. In the browser console, there is a JS exception that says : 'fetch' is undefined. Edit: Managed to fix it by adding "isomorphic-fetch": "^2.2.1" to package.json but I'm not sure this is the correct way to do it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1548
No description provided.