No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Share files between src and src-electron

    Help
    1
    1
    93
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alcarper last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post