Hi. Firstly, your flow will not be importable. Please edit your post and add ```
back ticks above and below ( See here )
Some thoughts on the function version. It is likely they have npm
added bacnet library to the .node-red folder manually and included a reference in settings.js. Then created a reference in global context.
Try going back to the original post, you may have missed something.