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

Usage With Browser & Node #458

Closed
jordanparker6 opened this issue Apr 1, 2024 · 3 comments
Closed

Usage With Browser & Node #458

jordanparker6 opened this issue Apr 1, 2024 · 3 comments

Comments

@jordanparker6
Copy link

How can I install this and use in a package that runs both in node and the browser?

I am getting a build error with the domino dependency when building with NextJS.

app:build: Error: 
app:build:   × With statement are not allowed in strict mode
app:build:     ╭─[/webapp/node_modules/.pnpm/domino@2.1.6/node_modules/domino/lib/sloppy.js:7:1]
app:build:   7  module.exports = {
app:build:   8    Window_run: function _run(code, file) {
app:build:   9      if (file) code += '\n//@ sourceURL=' + file;
app:build:  10      with(this) eval(code);
app:build:     ·     ────
app:build:  11    },
app:build:  12    EventHandlerBuilder_build: function build() {
app:build:  13      try {
app:build:     ╰────

Everything is working fine with the package build for the NodeJS server but the NextJS app is saying no thanks.

@ElectricCodeGuy
Copy link

I have this exact issue aswell... TypeError: Right-hand side of 'instanceof' is not an object

@martincizek
Copy link
Collaborator

Just released version 7.2. Please let me know if that fixes the problem.

@ElectricCodeGuy
Copy link

Just released version 7.2. Please let me know if that fixes the problem.

Works perfectly! :) Thank you!

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

3 participants