收藏
回答

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

开发工具模拟器显示不出,错误信息如下,不知如何解决


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

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

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

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

    at VM28 logs.js:1

(anonymous) @ VM28 logs.js:1

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

    at VM29 app.js:1

(anonymous) @ VM29 app.js:1

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

    at VM30 util.js:1

(anonymous) @ VM30 util.js:1

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

    at VM31 index.js:1

(anonymous) @ VM31 index.js:1

VM32: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) @ VM32:5

doWhenAllScriptLoaded @ VM27:65

scriptLoaded @ VM27:85

(anonymous) @ VM27:110

Promise.then (async)

(anonymous) @ VM27:136

(anonymous) @ VM27:140

loadScripts @ VM13 assubloader.js:1

async function (async)

loadScripts @ VM13 assubloader.js:1

loadAppResourceScripts @ VM13 assubloader.js:1

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

VM32: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) @ VM32:3

doWhenAllScriptLoaded @ VM27:65

scriptLoaded @ VM27:85

(anonymous) @ VM27:110

Promise.then (async)

(anonymous) @ VM27:136

(anonymous) @ VM27:140

loadScripts @ VM13 assubloader.js:1

async function (async)

loadScripts @ VM13 assubloader.js:1

loadAppResourceScripts @ VM13 assubloader.js:1

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

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

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

    at logs.js:1

(anonymous) @ logs.js:1

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

    at util.js:1

(anonymous) @ util.js:1

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

    at app.js:1

(anonymous) @ app.js:1

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

    at index.js:1

(anonymous) @ index.js:1

VM55: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) @ VM55:5

doWhenAllScriptLoaded @ VM50:65

scriptLoaded @ VM50:85

(anonymous) @ VM50:110

Promise.then (async)

(anonymous) @ VM50:136

(anonymous) @ VM50:140

loadScripts @ assubloader.js:1

async function (async)

loadScripts @ assubloader.js:1

loadAppResourceScripts @ assubloader.js:1

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

VM55: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) @ VM55:3

doWhenAllScriptLoaded @ VM50:65

scriptLoaded @ VM50:85

(anonymous) @ VM50:110

Promise.then (async)

(anonymous) @ VM50:136

(anonymous) @ VM50:140

loadScripts @ assubloader.js:1

async function (async)

loadScripts @ assubloader.js:1

loadAppResourceScripts @ assubloader.js:1

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

WAService.js?t=wechat&s=1617624199974&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

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


回答关注问题邀请回答
收藏

3 个回答

  • cover
    cover
    2021-04-06

    你好,这边是什么版本的工具?

    2021-04-06
    有用
    回复 3
  • 一把辛酸泪
    一把辛酸泪
    2021-12-30

    请问index.html在那个文件下面啊 我小程序都没找到这个文件啊?

    2021-12-30
    有用
    回复
  •  打怪小分队
    打怪小分队
    2021-10-18

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

    VM42:5 app.js错误:

     ReferenceError: require is not defined

        at <anonymous>:3:9

        at doWhenAllScriptLoaded (appservice?t=1634561861962:1198)

        at HTMLScriptElement.scriptLoaded (appservice?t=1634561861962:1226)

        at HTMLScriptElement.script.onload (appservice?t=1634561861962:1235)

    (anonymous) @ VM42:5

    doWhenAllScriptLoaded @ appservice?t=1634561861962:1198

    scriptLoaded @ appservice?t=1634561861962:1226

    script.onload @ appservice?t=1634561861962:1235

    load (async)

    (anonymous) @ appservice?t=1634561861962:1234

    (anonymous) @ appservice?t=1634561861962:1276

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

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


    =============什么鬼================

    简书有人回答。 问题是 index.html 是在什么位置呢

    Uncaught ReferenceError: wx is not defined

    工匠良辰

    关注2018.04.05 11:52:38

    字数 45

    阅读 12,014

    Uncaught ReferenceError: wx is not defined

    问题,在index.html中引用


    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    
    

    2018-04-05 13:00:59 最新的为1.2了


    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    
    

    https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115


    Javascript/Typescript开发/微信/Facebook



    2021-10-18
    有用
    回复
登录 后发表内容
问题标签