tediousjs / node-mssql

Microsoft SQL Server client for Node.js
https://tediousjs.github.io/node-mssql
MIT License
2.23k stars 466 forks source link

Buffer is not defined #1577

Closed mrzewnicki closed 11 months ago

mrzewnicki commented 11 months ago

I'm using node-mssql in react app and when i'm importing sql then i receive error: image

In shared.js i saw a problem is with VarBinary type image

I installed buffer and tried to configure it manuall by following documentation but didn't help image

I Installed also mssql/msnodesqlv8 but didn't help.

How can i solve it?

dhensby commented 11 months ago

You cannot use this module in the browser. It must run in node. It will not work with react.