How to make MSSQL connection using Node.js in vue.js frontend?
I need to connect Vue.js app to the remote MSSQL server.
I am using node.js, mssql library.
After setting up I get error.
How to make configuration settings in order to connect to mssql? How to solve issues related to installation of libraries?
ERROR Failed to compile with 5 errors 1:39:06 PM
These dependencies were not found:
* dgram in ./node_modules/native-dns-cache/lookup.js, ./node_modules/native-dns/lib/server.js and 2 others
* fs in ./node_modules/native-dns/lib/platform.js
To install them, you can run: npm install --save dgram fs
package.json dependencies:
...
},
"dependencies": {
"dgram": "^1.0.1",
"dns": "^0.2.2",
"firebase": "^4.10.0",
"fs": "0.0.1-security",
"highcharts": "^6.0.7",
"mssql": "^4.1.0",
"net": "^1.0.2",
"tls": "0.0.1",
"vue": "^2.5.3",
"vue-highcharts": "0.0.10",
"vue-router": "^3.0.1",
"vuetify": "^0.17.7",
"vuex": "^3.0.1"
}, ...