Skip to content

win环境下更改main.js后打包cordova失败 #12

@Liubasara

Description

@Liubasara

ERROR in ./src/main.js

http://eslint.org/docs/rules/ Parsing error: Unexpected token

44 | cordova.initialize()
45 | // 打开此行代码的注释可以打 cordova 的包

46 |
| ^
G:\VueDemo\vue-objccn-master\src\main.js:46:1

^

✘ 1 problem (1 error, 0 warnings)

Errors:
1 http://eslint.org/docs/rules/null

ERROR in ./src/main.js
Module build failed: SyntaxError: G:/VueDemo/vue-objccn-master/src/main.js: Unex
pected token (46:0)

44 | cordova.initialize()
45 | // 打开此行代码的注释可以打 cordova 的包

46 |
| ^

打包成apk后在模拟器和手机上显示都是黑屏...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions