Open CarlosOnline opened 11 months ago
Im sorry I am not aware how this can be solved. Can you try storing require on global and fetch back cached version is it related to second call to initialise. Ideally can you inject the same instance in every time. I’m really not an expert of the front end side of things.
@CarlosOnline did you find any solution for this? Please share of you have ideas =)
I am having the same problem within a worker pool, when I try to dynamically import the library using require or import() it gives me this error, I have managed to make it work by adding a timeout of 300ms before importing mssql/msnodesqlv8, but this solution does not work all right
Looking for help on resolving Unable to initialize msnodesql error during HMR, using vite for electron.
Source:
const msnodesqlv8 = require("mssql/msnodesqlv8");
Is there any reset or connection code I can apply to cause
msnodesqlv8
to reload during HMR?