差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
dotnet:core:blazor [2019/08/18 21:08] – ともやん | dotnet:core:blazor [2019/08/19 20:00] (現在) – [サブディレクトリで Blazor アプリが動作しない] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | <ifauth !@loggedinusers>< | ||
- | <script async src="// | ||
- | < | ||
- | | ||
- | google_ad_client: | ||
- | enable_page_level_ads: | ||
- | }); | ||
- | </ | ||
< | < | ||
< | < | ||
行 16: | 行 8: | ||
</ | </ | ||
</ | </ | ||
- | ====== Blazor | + | ====== Blazor |
<WRAP prewrap 100% # | <WRAP prewrap 100% # | ||
< | < | ||
行 24: | 行 16: | ||
</ | </ | ||
+ | ===== 参考文献 ===== | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | ===== トラブルシューティング ===== | ||
+ | |||
+ | ==== サブディレクトリで Blazor アプリが動作しない ==== | ||
+ | テンプレートのアプリは **<base href="/" | ||
+ | ここでは、**< | ||
+ | これを適切に修正しないと、**blazor.webassembly.js** の **fetch** API 呼び出しなどがすべてサブディレクトリを無視して **https:// | ||
+ | <WRAP prewrap 100%> | ||
+ | <code html> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <meta charset=" | ||
+ | <meta name=" | ||
+ | < | ||
+ | <base href="/ | ||
+ | <link href=" | ||
+ | <link href=" | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | |||
+ | <script src=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== 「Incorrect response MIME type. Expected ' | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | WASM: wasm streaming compile failed: TypeError: Failed to execute ' | ||
+ | WASM: falling back to ArrayBuffer instantiation blazor.webassembly.js: | ||
+ | WASM: Initialized blazor.webassembly.js: | ||
+ | </ | ||
+ | </ | ||
+ | Web サーバの **mime.types** に **application/ | ||
+ | < | ||
+ | $ sudo vi / | ||
+ | </ | ||
+ | <file autoconf / | ||
+ | x-conference/ | ||
+ | x-epoc/ | ||
+ | application/ | ||
+ | </ | ||
+ | 設定を反映させるために Apache をリロードする。\\ | ||
+ | < | ||
+ | $ sudo systemctl reload httpd | ||
+ | </ |