#native deps undefined err in renderer

1 messages · Page 1 of 1 (latest)

sharp phoenix
#

I am using electron-react-boilerplate with fabric native deps in renderer/folder. I installed it in release/app as instructed by docs. After I am facing fabric undefined err.

  1. I tried to send fabric from preload.ts as global
  2. passed through IPC from main to renderer
    Both not worked. If I pass normal data's like string, obj , it is working.
    I am using fabric related most functionality in renderer .

so how to handle these undefined err ?

quiet kraken
#

Please share your code/config/error if you want help

sharp phoenix
#

it is showing undefined err

eager zenith
sharp phoenix
#

i will send u preload.ts and web preference .
I think .it is not loaded

#

Preload

#

main.ts (i am loading preloading file)

#

I got this err

#

err : unable to load preload

eager zenith
#

err is unable to load module

sharp phoenix
#

Sorry for asking simple question. I am new to electron.Then how to send native module from main to renderer

eager zenith
#

you cant send modules

sharp phoenix
#

Most of code in renderer using this module. This problem only in windows. My team mates are working in mac.The same code working fine without any deps err

eager zenith
#

so?

#

you can require module in main or in preload with some config

sharp phoenix
#

I need that module in renderer

eager zenith
#

use context bridge with preload

sharp phoenix
eager zenith
#

no

#

its not

sharp phoenix
#

Or IPC ..it is also not working

eager zenith
#

you cant send module

#

you can only send commands and getting info

#

from it

#

like with web server