Closed jBernavaPrah closed 1 year ago
Closing because this is not an issue related to Jovo or my platform development.
Merely this is a knowing issue of javascript, if there are two instances of the same package (like class Plugin/Platform from @jovotech/framework) installed in both Jovo main app and in the ./node_modules of the development package, the VonagePlatform instanceof Plugin
will return false because the Plugin class of the VonagePlatform is "different" from the one of the Jovo main app.
I'm still investigating how I can continue to develop using the local files, using the local path on package.json file: ... "dependencies": { "@jbernavaprah/jovo-vonage-platform": "file:../jovo-vonage-platform", ... }
In the main time, if I use the npm package, everything work as expected.
Hey @jBernavaPrah
"Yarn workspaces" works fine:
Let's assume you have this project structure:
/project/jovo-vonage-platform /project/jovo-app
Add this package.json
in /project
{
"private": true,
"workspaces": ["jovo-vonage-platform"]
}
Add the platform dependency in your package.json
in /project/jovo-app
. Use the name
of your package in /project/jovo-vonage-platform/package.json
Example:
"jovo-vonage-platform": "^4.5.5"
Run yarn install
in /project
Run jovo run
in /project/jovo-app
I'm submitting a...
I'm trying to implement a new Platform. You can reach the code here.
When I add the platform to the plugin side of the Jovo app, I start receiving this error:
Diggin in the Jovo framework code I found that this error is triggered for two main reasons. 1) My VonagePlatform is not seen as a class that extends Plugin. 2) the
this.componentTree
is not initialized yet in the code.Now I'm stuck there because I cannot find what is missing on my Platform in order to be seen as Plugin.
Any help finding the bug is really appreciated!
FYI: I tried to add also different platforms (Alexa and Web), and both are seeing correctly as Plugin, so I'm sure is something related to my Platform.
Your Environment