# OPCUA "ReferenceError: opcuaBasics is not defined"

**URL:** <https://discourse.nodered.org/t/opcua-referenceerror-opcuabasics-is-not-defined/76647>\
**Category:** General\
**Tags:** opcua\
**Created:** [17 March 2023 05:04 UTC](https://discourse.nodered.org/t/opcua-referenceerror-opcuabasics-is-not-defined/76647 "2023-03-17T05:04:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 March 2023 07:48 UTC](https://discourse.nodered.org/t/opcua-referenceerror-opcuabasics-is-not-defined/76647/2 "2023-03-17T07:48:20Z")

</div>

@mr.saubhagya Welcome to the forum,

1. latest version of node-red-contrib-opcua is v0.2.302
2. what version of Node-RED and node.js are you running (you can get these from the NR startup log or open a terminal window on the device running NR and type `node -v`)
3. have you used OpcUa-Item to define variables? (per the node's readme)
4. Try adding a `change` node connected to a `debug` node (set to display the `complete msg object`) qaand see if that gives more information
5. which of the OPC nodes are you using?

can you create a small flow demonstrating the issue? If you can please export it and attach it to a reply.

Please make sure to answer ALL of the questions.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/opcua-referenceerror-opcuabasics-is-not-defined/76647)._
