You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to get the webpack config to work (see below), so the app will compile and launch, but I get a runtime error (whether i have canvas installed or not, does not change the error)
Can anyone say what I should do the fix this problem?
runtime error:
Uncaught Error: Cannot find module 'canvas'
at webpackMissingModule (index-node.js:4:24)
at ./node_modules/konva/cmj/index-node.js (index-node.js:4:24)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./node_modules/react-konva/lib/ReactKonva.js (ReactKonva.js:24:1)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./src/renderer/components/KonvaThumbnail.tsx (KonvaThumbnail.tsx:5:1)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:62:1)
I'm having trouble getting started with konva & react-konva in my Electron project based on the boilerplate: https://github.com/hellosoftware-io/electron-typescript-react-mui
Here is a minimal repo showing the problem: https://github.com/ajoslin103/electron-typescript-react-mui
I managed to get the webpack config to work (see below), so the app will compile and launch, but I get a runtime error (whether i have canvas installed or not, does not change the error)
Can anyone say what I should do the fix this problem?
runtime error:
which shows as:
webpack config
The text was updated successfully, but these errors were encountered: