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

typeof Popper === undefined is false #413

Closed
saber-wang opened this issue Nov 24, 2020 · 4 comments
Closed

typeof Popper === undefined is false #413

saber-wang opened this issue Nov 24, 2020 · 4 comments
Labels
bug Something isn't working Ready

Comments

@saber-wang
Copy link

saber-wang commented Nov 24, 2020

if (typeof Popper === undefined && script === undefined) {

error:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Cannot set property 'src' of undefined
TypeError: Cannot set property 'src' of undefined

typeof Popper === typeof undefined is true

@jemprince
Copy link

++ this issue

@chanan chanan added the bug Something isn't working label Dec 1, 2020
@Zaneris
Copy link

Zaneris commented Dec 2, 2020

Having this issue on 1.5.0-preview-02 when trying to use a tooltip.

Edit: Manually adding <script src="_content/BlazorStrap/popper.min.js"></script> before <script src="_content/BlazorStrap/blazorStrap.js"></script> results in Popper being set and then failing on line 219, setting script.src

Edit 2: Changing line 215 to:
if (typeof Popper === undefined || script === undefined) {
Seems to fix it.

@jbomhold3
Copy link
Collaborator

Ran into the issue testing recent changes. It will be fixed in next release

@jbomhold3 jbomhold3 added the Ready label Dec 7, 2020
@jbomhold3
Copy link
Collaborator

Ready and will be in next release closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Ready
Projects
None yet
Development

No branches or pull requests

5 participants