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
TypeError: offset_sourcemap_lines_1.default is not a function
at TaroMiniPlugin.injectCommonStyles (D:\Users\WillXu\Source\Repos\MiniApp\tarojs331\saqs\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:1190:43)
at TaroMiniPlugin. (D:\Users\WillXu\Source\Repos\MiniApp\tarojs331\saqs\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:1007:10)
at Generator.next ()
at fulfilled (D:\Users\WillXu\Source\Repos\MiniApp\tarojs331\saqs\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
相关平台
百度小程序
小程序基础库: 无关
使用框架: React
复现步骤
注意,版本是3.4.4,但是open issue时,没有3.4.4的选项,但是确实是3.4.4的问题
系统是Windows 11
node版本 v16.13.2
NODE_ENV=develop情况下,执行 taro build --type swan --watch 就会报错。切换到production不会出现这个问题。
期望结果
正常编译结束
实际结果
| 正在编译...offset_sourcemap_lines_1.default is not a function
offset_sourcemap_lines_1.default is not a function
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: offset_sourcemap_lines_1.default is not a function
at TaroMiniPlugin.injectCommonStyles (D:\Users\WillXu\Source\Repos\MiniApp\tarojs331\saqs\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:1190:43)
at TaroMiniPlugin. (D:\Users\WillXu\Source\Repos\MiniApp\tarojs331\saqs\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:1007:10)
at Generator.next ()
at fulfilled (D:\Users\WillXu\Source\Repos\MiniApp\tarojs331\saqs\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
环境信息
补充信息
3.4.3同一套代码,编译没这个问题,是升级到3.4.4后出现的。
升级通过taro update、taro update project并且删除了node_modules目录和lock文件再用npm install安装依赖。出现问题后,尝试再次删除node_modules和lock文件,故障依旧。
The text was updated successfully, but these errors were encountered: