bitfocus / companion-module-renewedvision-propresenter-api

MIT License
0 stars 1 forks source link

[BUG] - Unable to start module #14

Closed jmcc94 closed 1 week ago

jmcc94 commented 1 month ago

I'm testing this module locally with companion, and have place it the 'dev' folder, but the module doesn't want to start

The error in the log is - Instance/ModuleHost: Module entrypoint "G:...\companion-module-renewedvision-propresenter-api\dist\main.js" does not exist

I also notice that package.json has "main": "dist/index.js", & manifest.json has "entrypoint": "../dist/main.js"

And there is no 'dist folder' in the module, but there is a src/main.ts

I assume it's mot meant to be like this?

Really keen to test this, but currently unable to...

jswalden commented 1 month ago

src/main.ts is a TypeScript file, that has to be compiled into JavaScript to be executed by Companion. dist is the name of the folder conventionally used by Companion modules to store the compiled JavaScript files.

You probably need to run yarn install from the module folder to install all dependencies, then yarn build or yarn dev or some similar command to actually compile the module. Once the module is compiled, then you can actually use and test it.

greyshirtguy commented 1 month ago

It's not quite ready... It will be very soon and added to a Companion beta..(I'm guessing a couple of weeks).

If you really want to test an unfinished pre-release... (very little doco ,that's next) I've been putting them here as I work on it https://1drv.ms/f/s!ArHkDUamXNMvkuVDR_Yqk0RWDfg4aA?e=a4pdJY