简体   繁体   中英

Electron App ReferenceError: “package” is not defined

I'm trying to port my webapp into a desktop app. I'm trying to use electron. I have basically created the package.json, main.js and ran the electron . command. Everything seems ok, but I get an error saying in this case

ReferenceError: Flow is not defined

I'm using ng-flow.

It works fine if I just open it on WebBrowser and other packages imported doesn't seem to have a problem. Is there some considerations I should take into account when developing electron app regarding the packages I import?

script src="..."

It depends which file you're importing the script from.

if it's from the HTML page you need to be import if using the relative path for example:

<script src="../js/jquery.js"></script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM