Share files between src and src-electron



  • Hello.

    I’m building and app that need to load data in nodejs environment,
    I have the files to load the data in src-electron/main-process/service/…

    In this folder there is a folder called Models and I need to use these Models files in the render process located in src. So I created a copy of these files to scr/Models but I think it is not the correct.

    I can’t do import A from 'src/Models/A' because I get the error
    Can't resolve 'src/Models/A' in 'pathToMyProject\src-electron\main-process\service\OtherFile.ts

    What can I do to use the same Models in scr and src-electron?

    Thank you in advance.


Log in to reply