Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blazor.boot.json libraryInitializers incorrect path #46

Closed
johnW-ret opened this issue Oct 29, 2022 · 1 comment
Closed

blazor.boot.json libraryInitializers incorrect path #46

johnW-ret opened this issue Oct 29, 2022 · 1 comment

Comments

@johnW-ret
Copy link

This is my first time submitting an issue on a public repository, so forgive my ignorance please 🙂.

Issue:

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: chrome-extension://[my-chrome-extension-id]/_content/Microsoft.Fast.Components.FluentUI/Microsoft.Fast.Components.FluentUI.lib.module.js
at
content/Blazor.BrowserExtension/Core.js:43 (anonymous function)

I have referenced the above package in my project. In ...\net7.0\browserextension\framework\blazor.boot.json, When I change "_content" to "content" under "libraryInitializers", the extension loads as expected.

How to replicate:
dotnet new browserext
dotnet add package Microsoft.Fast.Components.FluentUI
dotnet build
then load unpacked into Microsoft Edge

I suspect this is similar to #43, but I do not understand the architecture of this project well enough to fix it myself without direction. Willing to fix and PR myself once I get a better understanding.

Thanks. Love this project, by the way!

@mingyaulee
Copy link
Owner

Thanks for reporting the issue! The fix is quite simple and has been implemented. You can update to the latest version v0.10.3 to get it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants