Ironclad / rivet

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

[Bug]: Plugins working on MacOS or Windows(not confirmed) are not on Ubuntu Jammy #371

Closed al-sabr closed 3 months ago

al-sabr commented 3 months ago

What happened?

See conversation link on discord : https://discord.com/channels/1149376303070466110/1170882289417343016/1215619223745863690

What was the expected functionality?

Node running without showing an error

Describe your environment

Ubuntu Jammy, node 18

Relevant log output

Error: Cannot find module 'node-html-markdown' Require stack: - /home/dumbo/.local/share/com.ironcladapp.rivet/plugins/rivet-plugin-html2md-latest/package/dist/nodeEntry.cjs 1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.

Relevant screenshots

No response

Code of Conduct

al-sabr commented 3 months ago

It seems that changing this:

code https://github.com/al-sabr/rivet-plugin-html2md/commit/3a3ef6402dd90005691c77fd6f01575495c7c450

fixes the problem but I just guessed intuitively that it might be the source of the problem.

image

abrenneke commented 3 months ago

I would open an issue in that project, because this isn't specific to Ubuntu.

al-sabr commented 3 months ago

This is specific to Ubuntu because I removed the my code from that project and tried it independently and it was not working until I hit this finding.

al-sabr commented 3 months ago

I would open an issue in that project, because this isn't specific to Ubuntu.

Which project are you referring to?