Growmedigitally
Growmedigitally
× With statement are not allowed in strict mode ╭─[/Users/danny/Documents/Target/Projects/node_modules/domino/lib/sloppy.js:13:1] 13 │ try { 14 │ with(this.document.defaultView || Object.create(null)) 15 │ with(this.document) 16 │ with(this.form) · ──── 17 │ with(this.element)...
> Hi, I encountered the same error when I tried to migrate my nextjs app to use their new app router system. The problem appears when `turndown` is imported anywhere...
> ``` > > node_modules/domino/lib/sloppy.js:10:4: error: With statements cannot be used with the "esm" output format due to strict mode > 10 │ with(this) eval(code); > ╵ ~~~~ > >...
> @Growmedigitally Not really fixed, but I managed to work around the problem by using [JSDOM](https://github.com/jsdom/jsdom) to bypass domino. > > You can have a look at this commit here:...