Production build: `Uncaught (in promise) Error: Failed to execute 'fetch' on 'Window': Illegal invocation`
See original GitHub issueWhen starting the production build of react-admin
, react-admin
stays at the loading screen and this error occurs:
Uncaught (in promise) Error: Failed to execute 'fetch' on 'Window': Illegal invocation
Edit: Apparently this happens when the FeathersJS server is not reachable (network/CORS issues). But nothing in the network tab in Developer Tools. A much more descriptive error message would be nice.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Failed to execute 'fetch' on 'Window': Illegal invocation - Stack ...
The problem was that I specified headers in the request options as a list of objects, when it should be an object. I...
Read more >Using in browser: "TypeError: Failed to execute 'fetch' on ...
In Firefox 81.0: TypeError: 'fetch' called on an object that does not implement interface Window.
Read more >[SOLVED] Failed to execute 'fetch' on 'Window' - Moralis Forum
All of a sudden i keep getting Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'Window': 1 argument required, ...
Read more >Failed to execute 'fetch' on 'Window': Illegal invocation
Hi there,. I'm attempting to integrate my airtable database api into a React project. I installed airtable using 'npm install airtable'.
Read more >Failed to execute 'fetch' on 'Window': Illegal invocation ...
I trying to use fetch for calls to backend from react without libs like Axios. api.ts export const sendSuggestion = ((data: any): Promise<any> ......
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
@josx: Yes, I created a new PR in the FeathersJS
docs
repository: https://github.com/feathersjs/docs/pull/1563#issuecomment-1068149371So, try to share this in feathers doc, would be illuminating.