NervJS / taro-plugin-platform-kwai

快手小程序平台插件
27 stars 10 forks source link

快手小程序的taro watch报错 #16

Closed bobsam closed 1 year ago

bobsam commented 2 years ago

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.

最近需要基于现有的taro项目迁移到快手~希望尽量回复一下,谢谢!

bobsam commented 2 years ago

@Chen-jj 求看看

bobsam commented 2 years ago

目前是关闭了enableSourceMap就不会报错了。目测是mini-runner那边对快手的source map支持有问题。

AdvancedCat commented 2 years ago

可以提供一个最小可复现DEMO吗?我本地运行没有复现你的问题,也许和具体项目有关系

91e17da3-d16c-49e7-8412-851a533a0bde

bobsam commented 2 years ago

可以提供一个最小可复现DEMO吗?我本地运行没有复现你的问题,也许和具体项目有关系

91e17da3-d16c-49e7-8412-851a533a0bde

你开启了enableSourceMap的配置了吗?我发现我打开了就会报错。

AdvancedCat commented 2 years ago

可以提供一个最小可复现DEMO吗?我本地运行没有复现你的问题,也许和具体项目有关系 91e17da3-d16c-49e7-8412-851a533a0bde

你开启了enableSourceMap的配置了吗?我发现我打开了就会报错。

设置了 enableSourceMap 为 true

colinmei00 commented 1 year ago

taro通过plugin-platform-kwai转快手小程序后input属性错乱的问题遇到过吗 大佬