You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get simpledom working in codebase with two environments. One with ts-node and another with webpack and ts-loader with "esModuleInterop": true,
import{Document,HTMLSerializer}from'simple-dom/dist/modules/es2017'// [2019-02-07T17:44:36.740Z] ERROR (gradius): a.HTMLSerializer is not a constructor// TypeError: a.HTMLSerializer is not a constructor// at Object.<anonymous> (/Users/wizard/src/gradius/dist/webpack-test/index.js:1493:696)
I'm not sure where to go from here. Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered:
I'm trying to get simpledom working in codebase with two environments. One with
ts-node
and another withwebpack
andts-loader
with"esModuleInterop": true,
With
[email protected]
I could doAnd it worked in all environments but has a bug where I had to include
dom
in my tsconfiglibs
configuration to get typescript to compile.For the upgrade to
1.4.0
, the previous code works withts-node
but webpack changes the export fromsimple-dom
to be a single export namedsimple-dom
This works but only in webpack with
[email protected]
and not withts-node
The following work with nothing... errors are from webpack.
I'm not sure where to go from here. Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: