[v0.15.14] build problem using electron



  • Building the SPA or PWA works great, but if I build electron I got:

    WARNING in ./node_modules/bindings/bindings.js
    81:22-40 Critical dependency: the request of a dependency is an expression
    @ ./node_modules/bindings/bindings.js
    @ ./node_modules/utf-8-validate/index.js
    @ ./node_modules/ws/lib/validation.js
    @ ./node_modules/ws/lib/receiver.js
    @ ./node_modules/ws/index.js
    @ ./node_modules/engine.io-client/lib/transports/websocket.js
    @ ./node_modules/engine.io-client/lib/transports/index.js
    @ ./node_modules/engine.io-client/lib/socket.js
    @ ./node_modules/engine.io-client/lib/index.js
    @ ./node_modules/socket.io-client/lib/manager.js
    @ ./node_modules/socket.io-client/lib/index.js
    @ ./src/feathers.js
    @ ./src/plugins/feathers.js
    @ ./.quasar/entry.js
    @ multi ./.quasar/entry.js
    
    WARNING in ./node_modules/bindings/bindings.js
    81:43-53 Critical dependency: the request of a dependency is an expression
    @ ./node_modules/bindings/bindings.js
    @ ./node_modules/utf-8-validate/index.js
    @ ./node_modules/ws/lib/validation.js
    @ ./node_modules/ws/lib/receiver.js
    @ ./node_modules/ws/index.js
    @ ./node_modules/engine.io-client/lib/transports/websocket.js
    @ ./node_modules/engine.io-client/lib/transports/index.js
    @ ./node_modules/engine.io-client/lib/socket.js
    @ ./node_modules/engine.io-client/lib/index.js
    @ ./node_modules/socket.io-client/lib/manager.js
    @ ./node_modules/socket.io-client/lib/index.js
    @ ./src/feathers.js
    @ ./src/plugins/feathers.js
    @ ./.quasar/entry.js
    @ multi ./.quasar/entry.js
    
    app:build [SUCCESS] ELECTRON with "mat" theme in "dist/electron-mat/UnPackaged" folder +1ms
    

    What can I do, I already added the following npm modules to my dev dependencies: bufferutil utf-8-validate bindings

    But the warning stays. Althought the build looks successful.



  • I am getting the same thing, even with a newly created project. I went through the windows-build-tools process, but the error message remains. I am getting WARNING in ./node_modules/electron-debug/index.js 96:45-58 Critical dependency: the request of a dependency is an expression @ .src-electron/main-process/electron-main.dev.js
    @ multi ./src-electron/main-process/electron-main.dev.js. I am also running into the problem with a require(‘mssql’) statement: webpack require is not a function. I would appreciate any commentary about these error message. The critical dependency does not stop the program execution but the webpack error stops everything.


Log in to reply