You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node ./node_modules/browserify/bin/cmd.js -r buffer -r ./node_modules/hdb/lib:hdb -o ./hdb.js
Step 4 so that hdb.js is created in root directory where my main.js (that contains connection code and query) and index.html are present.
In above code, createClient works fine but when client.connect is called I am getting "Unable to get property 'tcp' of undefined or null reference" error in console.
I followed few prerequisites steps from https://github.com/SAP/node-hdb/wiki/Develop-Chrome-Apps-for-SAP-HANA and also followed Readme.md from https://github.com/SAP/node-hdb
I will list down the steps here -
Step 4 so that hdb.js is created in root directory where my main.js (that contains connection code and query) and index.html are present.
Now my index.html has below scripts -
<script src="hdb.js"></script> <script src="main.js"></script>And my main.js has below code--
var hdb = require('hdb');
var client = hdb.createClient({
host: HOSTNAME,
port: PORT,
user: DBUSER,
password: DBPASSWORD
});
client.connect(function (err) {
if (err) {
return console.error('Error:', err);
}
console.log(client.readyState); // connected
});
In above code, createClient works fine but when client.connect is called I am getting "Unable to get property 'tcp' of undefined or null reference" error in console.
Now for above error, when I referred https://github.com/SAP/node-hdb/wiki/Develop-Chrome-Apps-for-SAP-HANA, I could see they added an entry for tcp in manifest.json. But I am not developing chrome extension.
Can you please help, what am I missing here?
The text was updated successfully, but these errors were encountered: