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

Webpack or Rollup transpilation error - TypeError: Right-hand side of 'instanceof' is not an object #146

Open
btakita opened this issue Oct 30, 2019 · 7 comments

Comments

@btakita
Copy link

btakita commented Oct 30, 2019

It looks like the name of the function attached to ctor param is stripped by the transpilation process & given ctor instead.

The result is the error TypeError: Right-hand side of 'instanceof' is not an object

import { elements } from 'domino/lib/htmlelts'
console.debug(elements) // { ctor: [Function: ctor] }
@btakita
Copy link
Author

btakita commented Oct 30, 2019

@dmmax
Copy link

dmmax commented Nov 1, 2019

I got same issue..

@nidi3
Copy link

nidi3 commented Nov 17, 2019

Me too, see #151

@nidi3
Copy link

nidi3 commented Nov 18, 2019

As the project seems to be sleeping at the moment, I published a build with this fix on npm https://www.npmjs.com/package/domino-ext.
But I would like to see it applied here on the original.

@blakeoxx
Copy link

blakeoxx commented Aug 2, 2021

This still appears to be an issue in release 2.1.6. The domino-ext fork works for me

blakeoxx added a commit to blakeoxx/adv-dupe-inspector that referenced this issue Aug 2, 2021
domino package was replaced with domino-ext until this issue is resolved. See fgnass/domino#146
@mohit-singh-pepper
Copy link

Seriously no resolution for this yet ? The projects using this like turndown are also not possible to bundle. Due to this.

@ElectricCodeGuy
Copy link

Now it is 2024... and still no fix??? what

enricoros added a commit to enricoros/big-AGI that referenced this issue Jun 7, 2024
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

6 participants