You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created an dotnet-wasm project similar to this documentation.
This will, among others, create a ./_framework/dotnet.js, to load the .net environment, file which references blazor.boot.json.
Current setup:
Building the wasm-project will write its output into the fronend-apps src/wasm/dotnet/ folder.
At some point, the app loads src/wasm/dotnet/_framework/dotnet.js:
Running vite causes the dev-server to find all referenced json files.
Building the app, will lead the dotnet.js file to throw an exception, since blazor.boot.json cannot be found.
Currently, after building the app, all files from _framework are copied to the dist/assets folder, which seems to resolve the issue ,but is not a nice solution.
Disired setup:
The wasm-project should be packed into a npm-package, which currently leads to the same error (cannot load blazor.boot.json).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created an dotnet-wasm project similar to this documentation.
This will, among others, create a
./_framework/dotnet.js
, to load the .net environment, file which referencesblazor.boot.json
.Current setup:
Building the wasm-project will write its output into the fronend-apps
src/wasm/dotnet/
folder.At some point, the app loads
src/wasm/dotnet/_framework/dotnet.js
:vite
causes the dev-server to find all referenced json files.dotnet.js
file to throw an exception, sinceblazor.boot.json
cannot be found._framework
are copied to thedist/assets
folder, which seems to resolve the issue ,but is not a nice solution.Disired setup:
blazor.boot.json
).Beta Was this translation helpful? Give feedback.
All reactions