You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X [ERROR] [plugin scanImports] Invalid option from onResolve() callback in plugin "scanImports": "importer"
node_modules/esbuild/lib/main.js:244:12:
244 │ throw new Error(`Invalid option ${where}: "${key}"`);
╵ ^
at checkForInvalidFlags (E:\tmp\myApp\node_modules\esbuild\lib\main.js:244:13)
at callback (E:\tmp\myApp\node_modules\esbuild\lib\main.js:956:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at handleRequest (E:\tmp\myApp\node_modules\esbuild\lib\main.js:713:30)
This error came from the "onResolve" callback registered here:
node_modules/esbuild/lib/main.js:855:22:
855 │ let promise = setup({
╵ ^
at setup (E:\tmp\myApp\node_modules\@tarojs\webpack5-prebundle\src\prebundle\scanImports.ts:112:13)
at handlePlugins (E:\tmp\myApp\node_modules\esbuild\lib\main.js:855:23)
at Object.buildOrServe (E:\tmp\myApp\node_modules\esbuild\lib\main.js:1149:7)
at E:\tmp\myApp\node_modules\esbuild\lib\main.js:2110:17
at new Promise (<anonymous>)
at Object.build (E:\tmp\myApp\node_modules\esbuild\lib\main.js:2109:14)
at Object.build (E:\tmp\myApp\node_modules\esbuild\lib\main.js:1956:51)
at E:\tmp\myApp\node_modules\@tarojs\webpack5-prebundle\src\prebundle\scanImports.ts:51:21
at Generator.next (<anonymous>)
The plugin "scanImports" was triggered by this import
相关平台
微信小程序
小程序基础库: 无关基础库版本
使用框架: React
复现步骤
config/index.js 中将 compiler.prebundle 开启
期望结果
正常编译
实际结果
无法正常编译运行
环境信息
补充信息
X [ERROR] [plugin scanImports] Invalid option from onResolve() callback in plugin "scanImports": "importer"
This error came from the "onResolve" callback registered here:
The plugin "scanImports" was triggered by this import
The text was updated successfully, but these errors were encountered: