rivet icon indicating copy to clipboard operation
rivet copied to clipboard

[Bug]: Example Plugin fails to install.

Open dannykhen opened this issue 2 years ago • 9 comments

What happened?

On Linux (Ubuntu), the Example Plugin fails to install.

What was the expected functionality?

Does not fail.

Describe your environment

Ubuntu 22.04.2 LTS on Windows Subsystem for Windows (WSL)

Relevant log output

Installing...
Installing plugin: Example Plugin...
Checking for plugin updates: rivet-plugin-example@latest
Removing existing plugin: rivet-plugin-example@latest
Plugin not found locally or needs reinstall: rivet-plugin-example@latest, downloading from NPM...
Downloading plugin tarball from NPM: https://registry.npmjs.org/rivet-plugin-example/-/rivet-plugin-example-0.0.1.tgz
Downloaded plugin tarball from NPM: https://registry.npmjs.org/rivet-plugin-example/-/rivet-plugin-example-0.0.1.tgz
Installing NPM dependencies...
pkg/prelude/bootstrap.js:6
}
^

SyntaxError: Unexpected token '}'
    at new Script (node:vm:102:7)
    at readPrelude (node:internal/bootstrap/pkg:29:13)
    at node:internal/bootstrap/pkg:36:18
    at node:internal/bootstrap/pkg:43:4
    at node:internal/bootstrap/pkg:44:2

Node.js v18.5.0

Error installing plugin: Error installing plugin dependencies: rivet-plugin-example@latest: pkg/prelude/bootstrap.js:6
}
^

SyntaxError: Unexpected token '}'
    at new Script (node:vm:102:7)
    at readPrelude (node:internal/bootstrap/pkg:29:13)
    at node:internal/bootstrap/pkg:36:18
    at node:internal/bootstrap/pkg:43:4
    at node:internal/bootstrap/pkg:44:2

Node.js v18.5.0

Relevant screenshots

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

dannykhen avatar Oct 18 '23 00:10 dannykhen

Thanks! This is strange, might be Linux-only. I don't have a linux box to test it on at the moment, unfortunately. Hopefully someone with one can dive in and figure this one out.

abrenneke avatar Oct 18 '23 17:10 abrenneke

Do you have a Windows machine? You could use Windows Subsystem for Linux (WSL). This is the environment I use where the issue is. (And it's a popular Linux solution for anyone running Windows, since it's easier to use than a VM.)

dannykhen avatar Oct 18 '23 18:10 dannykhen

Ah right, that can run GUI apps these days can't it?

abrenneke avatar Oct 18 '23 18:10 abrenneke

Yes. They can render natively on the Windows desktop, no need to install a Windows X11 server (like VcXsrv) anymore. Needs to be the latest WSL v2.

dannykhen avatar Oct 18 '23 20:10 dannykhen

Any update on this bug?

al-sabr avatar Mar 08 '24 10:03 al-sabr