代码如下
[ 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.
大佬不是神仙,没有你的代码