Question
· Jun 20, 2023

IRIS Nodejs Quickstart

When trying the Iris Nodejs Quickstart I do get the following message in the source code:

 

Could not find a declaration file for module 'intersystems-iris-native'. 'C:/Nodejs Quickstart/Solutions/intersystems-iris-native/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/intersystems-iris-native` if it exists or add a new declaration (.d.ts) file containing `declare module 'intersystems-iris-native';`
ts(7016)
module "C:/Nodejs Quickstart/Solutions/intersystems-iris-native/index"
 

 the necessary npm modules are installed...

this suggested command does not solve the issue:

Try `npm i --save-dev @types/intersystems-iris-native`

the intersystems-iris-native module is part of the dependencies declaration in the package.json file

Does somebody have a suggestion ? Thanks

Product version: IRIS 2023.1
Discussion (1)1
Log in or sign up to continue

The intersystems-iris-native module for node.js can be found within the Intersystems installation directory. Specifically, it is in: isc-install-dir\dev\nodejs\intersystems-iris-native\
Basically, you can copy the module from the InterSystems installation directory into your node_modules directory for your project, or install it globally.

Source: https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls... 

Failing that, you can also locate the node.js driver and other drivers from: https://github.com/intersystems-community/iris-driver-distribution