收藏
回答

appservice 生成错误,有没有大佬帮忙看下?

代码如下

[ appservice 生成错误] utils/yk_tool.js: file: utils/yk_tool.js

 unknown: Identifier 't' has already been declared. (11:9)


   9 | }

  10 |

> 11 | function t() {

     |          ^

  12 |     return getApp().siteInfo.siteroot.split("app/index.php")[0] + "addons/hc_cms/";

  13 | }

  14 |(env: Windows,mp,1.06.2402030; lib: 2.14.0)

页面【component/chater-list/index]错误:

 Error: module 'utils/yk_tool.js' is not defined, require args is '../../utils/yk_tool'

    at C (wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1)

    at n (wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1)

    at index.js? [sm]:7

    at C (wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1)

    at appservice.js:10931

    at doWhenAllScriptLoaded (getmainpackage.js:12310)

    at Object.scriptLoaded (getmainpackage.js:12345)

    at Object.<anonymous> (getmainpackage.js:12403)(env: Windows,mp,1.06.2402030; lib: 2.14.0)

WAServiceMainContext.js:2 Uncaught FrameworkError 

 module 'utils/yk_tool.js' is not defined, require args is '../../utils/yk_tool' 

 Error: module 'utils/yk_tool.js' is not defined, require args is '../../utils/yk_tool'

    at C (http://127.0.0.1:43755/appservice/__dev__/wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1:5584)

    at n (http://127.0.0.1:43755/appservice/__dev__/wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1:4741)

    at http://127.0.0.1:43755/appservice/component/chater-list/index.js:9:11

    at C (http://127.0.0.1:43755/appservice/__dev__/wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1:5787)

    at ide:///package/__APP__/appservice.js:10931:7

    at doWhenAllScriptLoaded (ide:///getmainpackage.js:12310:21)

    at Object.scriptLoaded (ide:///getmainpackage.js:12345:5)

    at Object.<anonymous> (ide:///getmainpackage.js:12403:22)(env: Windows,mp,1.06.2402030; lib: 2.14.0)

B @ WAServiceMainContext.js:2

WAServiceMainContext.js:2 MiniProgramError

module 'utils/yk_tool.js' is not defined, require args is '../../utils/yk_tool'

Error: module 'utils/yk_tool.js' is not defined, require args is '../../utils/yk_tool'

    at C (http://127.0.0.1:43755/appservice/__dev__/wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1:5584)

    at n (http://127.0.0.1:43755/appservice/__dev__/wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1:4741)

    at http://127.0.0.1:43755/appservice/component/chater-list/index.js:9:11

    at C (http://127.0.0.1:43755/appservice/__dev__/wxmodule.patch.js?t=wechat&s=1711424920955&v=2.14.0:1:5787)

    at ide:///package/__APP__/appservice.js:10931:7

    at doWhenAllScriptLoaded (ide:///getmainpackage.js:12310:21)

    at Object.scriptLoaded (ide:///getmainpackage.js:12345:5)

    at Object.<anonymous> (ide:///getmainpackage.js:12403:22)(env: Windows,mp,1.06.2402030; lib: 2.14.0)

errorReport @ WAServiceMainContext.js:2

thirdErrorReport @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

Page "pages/index/index" has not been registered yet.

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

1 个回答

  • Mr.Zhao
    Mr.Zhao
    03-26

    大佬不是神仙,没有你的代码

    03-26
    有用
    回复 1
    • Y
      Y
      发表于移动端
      03-26
      哈哈,等我发出来
      03-26
      回复
登录 后发表内容