I am trying to build a simple initial app using Vite, I have first generated a scheleton:
npm create vite@latest my-vue-app -- --template vanilla-ts
Secondly I added the provided example code and in main.ts now I have:
The code builds successfully, with some warnings related to "... module externalized for browser compatibility"
Unfortunately in the browser the page is not displayed and the console log throws the errors:
Uncaught ReferenceError: process is not defined
at _dotenvKey (@stoqey_ib.js?v=12df7155:611:7)
at Object.config (@stoqey_ib.js?v=12df7155:731:11)
at node_modules/@stoqey/ib/dist/common/configuration.js (@stoqey_ib.js?v=12df7155:853:20)
at __require (@stoqey_ib.js?v=12df7155:3:50)
at node_modules/@stoqey/ib/dist/core/io/controller.js (@stoqey_ib.js?v=12df7155:7064:43)
at __require (@stoqey_ib.js?v=12df7155:3:50)
at node_modules/@stoqey/ib/dist/api/api.js (@stoqey_ib.js?v=12df7155:7311:24)
at __require (@stoqey_ib.js?v=12df7155:3:50)
at node_modules/@stoqey/ib/dist/index.js (@stoqey_ib.js?v=12df7155:22518:17)
at __require (@stoqey_ib.js?v=12df7155:3:50)
I know that this is not a problem with the library itself but more of a problem with compatibility with Vite, nevertheless this would be a great start for a complete demo app using the example code.
I am trying to build a simple initial app using Vite, I have first generated a scheleton:
npm create vite@latest my-vue-app -- --template vanilla-ts
Secondly I added the provided example code and in main.ts now I have:The code builds successfully, with some warnings related to "... module externalized for browser compatibility" Unfortunately in the browser the page is not displayed and the console log throws the errors:
I know that this is not a problem with the library itself but more of a problem with compatibility with Vite, nevertheless this would be a great start for a complete demo app using the example code.