Last post Jun 28, 2020 02:23 PM by CincySteve
Jun 28, 2020 02:23 PM|CincySteve|LINK
I have a small Blazor Wasm app that I am using to learn. It has a couple TypeScript files I use for various reasons. Under circumstances I cannot identify, I sometimes get when running the debugger a 'Could not load content for https://localhost:44307/scripts/MyCode.ts
(HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)' error in the Chrome DevTools Sources for MyCode.ts and the debugger stops working as expected. For example, break points don't trigger in the .js file generated from the .ts, though Chrome
shows a small popup indicting 'Paused in debugger' with the thread showing Main service-worker.js. Frankly, I don't understand why Chrome is trying to load the .ts file in the first place.
I have the following set based on things I've read:
I have read that there are problems with Blazor debugging. Perhaps this is one of them. In any case, any thoughts? Is there anything I can do to get around this problem?