Answer the question
In order to leave comments, you need to log in
Who knows what is causing this problem?
Deployed the default vue template via "vue create ." after that I added electron via command
"vue add electron-builder" -> selected version 9.0.0, everything works fine but when I try to import it gives me
this error
This is what the debugger shows
I haven't done anything yet except remove helloworld from the vue template .
Tell me how to fix this problem, as far as I understand, there is some kind of problem with the package.
Answer the question
In order to leave comments, you need to log in
You need to run it not through the usual one yarn serve
, but through yarn electron:serve . How to build. Read the description of those modules that you connect.
__dirname where is it defined? __dirname is the absolute path to the directory containing the source file being executed, not the current working directory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question