DWQA QuestionsCategory: Development ToolVue + electron runs after packaging and reports an error
FlexUI asked 2 hours ago

Can’t run after packaging. Which aspect should I check for the following errors??A JavaScript error occurred in the main processimage.png,Low level error:
Main process not written:
"main": "background.js",,Look at the information behind the error: cannot find module. It said that the file could not be found. Did you pack it incorrectly or miss the file?

Snails replied 17 hours ago

May need to see your main JS content to know the problem

2 Answers
FlexUI answered 17 hours ago

Low level error:
Main process not written:
"main": "background.js",

mythology answered 17 hours ago

Look at the information behind the error: cannot find module. It said that the file could not be found. Did you pack it incorrectly or miss the file?