K
K
Kotaro Hiba2020-08-06 11:52:14
JavaScript
Kotaro Hiba, 2020-08-06 11:52:14

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
5f2bc42704567413755084.png
this error
5f2bc41cd8d1f584884306.png
This is what the debugger shows
5f2bc461a044d560392054.png
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

2 answer(s)
A
Aetae, 2020-08-08
@lina666

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.

B
BATPYIIIKOB, 2020-08-06
@BATPYIIIKOB

__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 question

Ask a Question

731 491 924 answers to any question