类似这种错误,报了一屏,换成高一版本或低一版本的基础库,都能正常编译显示。这是为什么?(现在换个基础库就能正常跑,倒不耽误开发,就是给官方报个bug)
WAServiceMainContext.js:2 ReferenceError: define is not defined
at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at http://127.0.0.1:29542/appservice/pages/protocol/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at http://127.0.0.1:29542/appservice/pages/forget-password/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at http://127.0.0.1:29542/appservice/pages/reset-password/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at http://127.0.0.1:29542/appservice/pages/request/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at http://127.0.0.1:29542/appservice/pages/index/index.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at index.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at http://127.0.0.1:29542/appservice/app.js:1:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at app.js:1(env: macOS,mp,1.05.2201240; lib: 2.21.4)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
a @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
emit @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:2
(anonymous) @ WASubContext.js?t=wechat&s=1643248266337&v=2.21.4:3
WAServiceMainContext.js:2 Uncaught FrameworkError
define is not defined
ReferenceError: define is not defined
at <anonymous>:2:5
at doWhenAllScriptLoaded (<anonymous>:4607:21)
at Object.scriptLoaded (<anonymous>:4635:5)
at Object.<anonymous> (<anonymous>:4660:22)(env: macOS,mp,1.05.2201240; lib: 2.21.4)
a @ WAServiceMainContext.js:2
c @ VM30 asdebug.js:1
r @ VM30 asdebug.js:1
window.onerror @ VM1007:10
doWhenAllScriptLoaded @ VM1022:4607
scriptLoaded @ VM1022:4635
(anonymous) @ VM1022:4660
error (async)
t.default @ VM1007:10
(anonymous) @ VM1007:10
n @ VM1007:1
(anonymous) @ VM1007:1
(anonymous) @ VM1007:1
WAServiceMainContext.js:2 ReferenceError: define is not defined
at <anonymous>:2:5
at doWhenAllScriptLoaded (<anonymous>:4607:21)
at Object.scriptLoaded (<anonymous>:4635:5)
at Object.<anonymous> (<anonymous>:4660:22)(env: macOS,mp,1.05.2201240; lib: 2.21.4)
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。