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

server-side error: HTMLSelectElement is not defined #2233

Closed
MarcGodard opened this issue Mar 15, 2019 · 11 comments
Closed

server-side error: HTMLSelectElement is not defined #2233

MarcGodard opened this issue Mar 15, 2019 · 11 comments

Comments

@MarcGodard
Copy link

I have been getting this error since 1.13.6:

error: HTMLSelectElement is not defined

I have no idea why, or how, but I use a type of webpack and server side rendering. So I assume in one of those the error is created (if no one else is getting this issue).

@caseyjhol
Copy link
Member

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case (you can use our preconfigured Plunker), and report back with:

  • your link
  • Bootstrap version
  • bootstrap-select version
  • specific browser and OS details.

@MarcGodard
Copy link
Author

This setup is very complicated. There is no reduced test case. I can make a public repo that others can try the newer version to see it. The problem is that its part of Server Side Rendering and it being compiled with a package manager to reproduce. I could dig further in, but I will just wait till others see the issue with other similar systems if a repo is not good enough.

@caseyjhol
Copy link
Member

So you're only getting that error server side?

@MarcGodard
Copy link
Author

It really just needs a if (HTMLSelectElement) HTMLSelectElement ...

@caseyjhol
Copy link
Member

Definitely that would fix the error. Just wanted to make sure I didn't need to come up with a new way to do the selectedOptions polyfill. I thought maybe you were using some weird browser where HTMLSelectElement wasn't available immediately/at all.

@caseyjhol caseyjhol changed the title error: HTMLSelectElement is not defined server-side error: HTMLSelectElement is not defined Mar 21, 2019
@MarcGodard
Copy link
Author

@caseyjhol I am not 100% sure if that is the case (where its not yet available), but sounds like the case. Let me know when I can update and test again. If you need more help, I should have time in a week to dig deeper. I do like this project and have been using it for a long time.

@caseyjhol
Copy link
Member

Released in v1.13.9!

@MarcGodard
Copy link
Author

Thanks for trying, now I get another error (Just updating this one package) and still breaks everything. I will dig deeper soon, still works 100% with version 1.13.5. Big deadline then I will be happy to make a PR

@caseyjhol
Copy link
Member

@MarcGodard What error are you getting now?

@MarcGodard
Copy link
Author

MarcGodard commented Apr 10, 2019

@caseyjhol unfortunately the error isn't descriptive. It would require some deep probing.

error: Mixed dependency cycle detected

However, the older version still works 100%.

@caseyjhol
Copy link
Member

@MarcGodard For what it's worth, this polyfill will be removed in v1.14.0, so if you're still having problems hopefully that will fix 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