May-11th-2020, 05:52 AM
I found the problem. The list of search paths is incomplete in the source code of the OPC-UA node.
I had to install another line in the list of path where the node has to look for the server node.
Then it works. This is a bug and I have to repot it to the developer and raise an issue.
I cannot solve it myself for everybody sind it is a bug. You can edit the source code yourself in the container.
Thx
Arminn
I had to install another line in the list of path where the node has to look for the server node.
Code:
var serverPkg = installedPath.getInstalledPathSync('node-opcua-server', {
paths: [
path.join(__dirname, '..'),
path.join(__dirname, '../..'),
path.join(process.cwd(), './node_modules'),
---> path.join(process.cwd(), '../node_modules'), <----
path.join(process.cwd(), '.node-red/node_modules'),
],
Then it works. This is a bug and I have to repot it to the developer and raise an issue.
I cannot solve it myself for everybody sind it is a bug. You can edit the source code yourself in the container.
Thx
Arminn
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)