Closed jmcc94 closed 1 week 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.
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
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...