このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
dotnet:core:blazor [2019/08/19 18:10] – ともやん | dotnet:core:blazor [2019/08/19 20:00] (現在) – [サブディレクトリで Blazor アプリが動作しない] ともやん |
---|
| |
===== 参考文献 ===== | ===== 参考文献 ===== |
| [[https://learn-blazor.com/|Introduction :: Learn Blazor]]\\ |
[[https://github.com/mono/mono/issues/11066|Using Roslyn in wasm-Project · Issue #11066 · mono/mono · GitHub]]\\ | [[https://github.com/mono/mono/issues/11066|Using Roslyn in wasm-Project · Issue #11066 · mono/mono · GitHub]]\\ |
[[https://github.com/Suchiman/Runny|GitHub - Suchiman/Runny: Prototype of running roslyn in the browser via Blazor]]\\ | [[https://github.com/Suchiman/Runny|GitHub - Suchiman/Runny: Prototype of running roslyn in the browser via Blazor]]\\ |
ここでは、**<base href="/media/dotnet/core/blazor_app/" />** に配置するように修正している。\\ | ここでは、**<base href="/media/dotnet/core/blazor_app/" />** に配置するように修正している。\\ |
これを適切に修正しないと、**blazor.webassembly.js** の **fetch** API 呼び出しなどがすべてサブディレクトリを無視して **https://www.tomoyan.net/_framework/** へ要求してしまい **404 Not Found** となってしまう。\\ | これを適切に修正しないと、**blazor.webassembly.js** の **fetch** API 呼び出しなどがすべてサブディレクトリを無視して **https://www.tomoyan.net/_framework/** へ要求してしまい **404 Not Found** となってしまう。\\ |
<code html index.html> | <WRAP prewrap 100%> |
| <code html> |
<!DOCTYPE html> | <!DOCTYPE html> |
<html> | <html> |
</html> | </html> |
</code> | </code> |
| </WRAP> |
| |
==== 「Incorrect response MIME type. Expected 'application/wasm'.」が発生する ==== | ==== 「Incorrect response MIME type. Expected 'application/wasm'.」が発生する ==== |