Hi,
I cloned the ignition-sdk-example and build the perspective-component example and everything worked fine. I then created my own module that attempt to register a simple perspective component. What i did is pretty much copied the structure of the perspective-compoennt example from here.
I'm unable to run ./gradlew :web:build
at the moment and it comes back with the following error error Couldn't find any versions for "@inductiveautomation/perspective-drawing-common" that matches "2.1.99"
In my package.json I have the followign which matches with the example
"@inductiveautomation/perspective-client": "^2.1.16",
"@inductiveautomation/perspective-designer": "^2.1.16",
In the build.gradle.kts
of /web
folder I have node versions as follows
node {
version.set("18.17.1") // Update this to at least 18.x.x (can be higher, e.g., 20.0.0)
yarnVersion.set("1.22.22") // Yarn version stays the same
npmVersion.set("9.8.1") // Optional but can be upgraded
download.set(true)
nodeProjectDir.set(file(project.projectDir))
}
I also have the .npmrc
file
; register the @inductiveautomation scope so that IA node packages resolve from our
; package repo and it doesn't attempt to resolve them against the npm's central repo
@inductiveautomation:registry=https://nexus.inductiveautomation.com/repository/node-packages/
and yarnrc
file
"@inductiveautomation:registry" "https://nexus.inductiveautomation.com/repository/node-packages"
Here's the folder hierarchy of the web folder
Any idea how to resolve the erros?