Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.72k stars 238 forks source link

[Bug]: Example Plugin fails to install. #217

Open dannykhen opened 11 months ago

dannykhen commented 11 months ago

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

abrenneke commented 11 months ago

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.

dannykhen commented 11 months ago

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.)

abrenneke commented 11 months ago

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

dannykhen commented 11 months ago

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.

al-sabr commented 7 months ago

Any update on this bug?