收藏
回答

为什么我的模拟器一直空白啊?

第一天学小程序开发,为啥我的模拟器一直空白啊?

电脑64位的,一编译就显示一堆错误,我都不知道我干什么了

这是报错的代码,完全看不懂

[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引

WAService.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

[渲染层错误] Uncaught ReferenceError: wx is not defined

VM45 appservice.js:1 Uncaught ReferenceError: define is not defined

    at VM45 appservice.js:1

(anonymous) @ VM45 appservice.js:1

VM46:5 app.js错误:

 ReferenceError: require is not defined

    at <anonymous>:3:7

    at doWhenAllScriptLoaded (<anonymous>:65:21)

    at Object.scriptLoaded (<anonymous>:85:5)

    at Object.<anonymous> (<anonymous>:110:22)

(anonymous) @ VM46:5

doWhenAllScriptLoaded @ VM44:65

scriptLoaded @ VM44:85

(anonymous) @ VM44:110

Promise.then (async)

(anonymous) @ VM44:136

(anonymous) @ VM44:140

loadScripts @ VM30 assubloader.js:1

async function (async)

loadScripts @ VM30 assubloader.js:1

loadAppResourceScripts @ VM30 assubloader.js:1

(anonymous) @ instanceframe?s=1617522403203&autoload:7

VM46:3 Uncaught ReferenceError: require is not defined

    at <anonymous>:3:7

    at doWhenAllScriptLoaded (<anonymous>:65:21)

    at Object.scriptLoaded (<anonymous>:85:5)

    at Object.<anonymous> (<anonymous>:110:22)

(anonymous) @ VM46:3

doWhenAllScriptLoaded @ VM44:65

scriptLoaded @ VM44:85

(anonymous) @ VM44:110

Promise.then (async)

(anonymous) @ VM44:136

(anonymous) @ VM44:140

loadScripts @ VM30 assubloader.js:1

async function (async)

loadScripts @ VM30 assubloader.js:1

loadAppResourceScripts @ VM30 assubloader.js:1

(anonymous) @ instanceframe?s=1617522403203&autoload:7

WAService.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

[渲染层错误] Uncaught ReferenceError: wx is not defined

index.js:1 Uncaught ReferenceError: define is not defined

    at index.js:1

(anonymous) @ index.js:1

logs.js:1 Uncaught ReferenceError: define is not defined

    at logs.js:1

(anonymous) @ logs.js:1

app.js:1 Uncaught ReferenceError: define is not defined

    at app.js:1

(anonymous) @ app.js:1

util.js:1 Uncaught ReferenceError: define is not defined

    at util.js:1

(anonymous) @ util.js:1

VM69:5 app.js错误:

 ReferenceError: require is not defined

    at <anonymous>:3:7

    at doWhenAllScriptLoaded (<anonymous>:65:21)

    at Object.scriptLoaded (<anonymous>:85:5)

    at Object.<anonymous> (<anonymous>:110:22)

(anonymous) @ VM69:5

doWhenAllScriptLoaded @ VM64:65

scriptLoaded @ VM64:85

(anonymous) @ VM64:110

Promise.then (async)

(anonymous) @ VM64:136

(anonymous) @ VM64:140

loadScripts @ assubloader.js:1

async function (async)

loadScripts @ assubloader.js:1

loadAppResourceScripts @ assubloader.js:1

(anonymous) @ instanceframe?s=1617522403203&autoload:7

VM69:3 Uncaught ReferenceError: require is not defined

    at <anonymous>:3:7

    at doWhenAllScriptLoaded (<anonymous>:65:21)

    at Object.scriptLoaded (<anonymous>:85:5)

    at Object.<anonymous> (<anonymous>:110:22)

(anonymous) @ VM69:3

doWhenAllScriptLoaded @ VM64:65

scriptLoaded @ VM64:85

(anonymous) @ VM64:110

Promise.then (async)

(anonymous) @ VM64:136

(anonymous) @ VM64:140

loadScripts @ assubloader.js:1

async function (async)

loadScripts @ assubloader.js:1

loadAppResourceScripts @ assubloader.js:1

(anonymous) @ instanceframe?s=1617522403203&autoload:7

WAService.js?t=wechat&s=1617522392309&v=2.16.0:-2 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

util.js:1 Uncaught ReferenceError: define is not defined

    at util.js:1

(anonymous) @ util.js:1

index.js:1 Uncaught ReferenceError: define is not defined

    at index.js:1

(anonymous) @ index.js:1

logs.js:1 Uncaught ReferenceError: define is not defined

    at logs.js:1

(anonymous) @ logs.js:1

app.js:1 Uncaught ReferenceError: define is not defined

    at app.js:1

(anonymous) @ app.js:1

[渲染层错误] Uncaught ReferenceError: wx is not defined


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签