Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Error : undefined is not an object (evaluating '(HTMLBuiltIn.prototype = tmp.prototype).constructor.. #26

Closed
Ballpin opened this issue Jul 8, 2020 · 7 comments

Comments

@Ballpin
Copy link

Ballpin commented Jul 8, 2020

Hello,

I tried this polyfill and it works great on some enviorments but on others where more polyfills are included (from corejs3) i keep getting this error.

TypeError: undefined is not an object (evaluating '(HTMLBuiltIn.prototype = tmp.prototype).constructor = HTMLBuiltIn')

Any idea how to solve it?

EDIT: I tried to solve it myself but had no luck.

@WebReflection
Copy link
Member

File a bug there?

@Ballpin
Copy link
Author

Ballpin commented Jul 8, 2020

File a bug there?

Sorry about my earlier message. I understood what you ment after i wrote it.

It is on my own project where it is not working. What is really weird when i import it to Storybook it works well, but in my current project it is not working even though i have the same config (as the one im using in storybook) where it was working.

Even when i remove all html code in the server, same error keeps popping up. Im using django btw

@WebReflection
Copy link
Member

WebReflection commented Jul 8, 2020

include this polyfill before anything else, never do the other way around. If that still breaks, you gotta give me something more than "Im using django btw", as this is client side JavaScript, and it has nothing to do with the server side/BE of choice.

@Ballpin
Copy link
Author

Ballpin commented Jul 8, 2020

Yes you are right. I apologise.. i found the my error now. I was so blind in my own code and totally missed one line.

@Ballpin Ballpin closed this as completed Jul 8, 2020
@WebReflection
Copy link
Member

Glad you solved. If it was a particular trick, please share, so others searching through bugs might have a solution already 👋

@Ballpin
Copy link
Author

Ballpin commented Jul 8, 2020

The trick was pretty simple, go away from the computer for a few seconds and then look at your code again. :-)

@WebReflection
Copy link
Member

Huh, that often works for me as well 👍

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

No branches or pull requests

2 participants