Open bobsam opened 2 years ago
等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!
Thank you so much!
字节小程序同样报这个问题
楼主是拿h5项目适配taro的吗?还是在从零开发中遇到的呢?
目前是关闭了enableSourceMap配置就不会报错了。目测是mini-runner那边对快手的source map支持有问题。
楼主是拿h5项目适配taro的吗?还是在从零开发中遇到的呢?
拿微信小程序版本适配。
相关平台
快手小程序
使用框架: React
复现步骤
执行命令: cross-env BUILD_ENV=development NODE_ENV=development taro build --type kwai --watch
然后出现报错:
offset_sourcemap_lines_1.default is not a function
(node:16909) UnhandledPromiseRejectionWarning: TypeError: offset_sourcemap_lines_1.default is not a function at TaroMiniPlugin.injectCommonStyles (/Users/bob/Documents/workspace/git.nie/a38-client-webfront/node_modules/@tarojs/mini-runner/src/plugins/MiniPlugin.ts:1189:43) at TaroMiniPlugin. (/Users/bob/Documents/workspace/git.nie/a38-client-webfront/node_modules/@tarojs/mini-runner/src/plugins/MiniPlugin.ts:1006:10)
at Generator.next ()
at fulfilled (/Users/bob/Documents/workspace/git.nie/a38-client-webfront/node_modules/@tarojs/mini-runner/dist/plugins/MiniPlugin.js:5:58)
(Use
node --trace-warnings ...
to show where the warning was created) (node:16909) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:16909) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.期望结果
不报错,可以进行watch
实际结果
报错了,watch失败
环境信息
补充信息
期望尽快修复,目前需要将现有的taro项目兼容快手。