Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

快手小程序taro watch报错 #11507

Open
bobsam opened this issue Mar 25, 2022 · 7 comments
Open

快手小程序taro watch报错 #11507

bobsam opened this issue Mar 25, 2022 · 7 comments
Labels
F-react Framework - React T-kwai V-3 Version - 3.x

Comments

@bobsam
Copy link

bobsam commented Mar 25, 2022

相关平台

快手小程序

使用框架: 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 CLI 3.4.3 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.18.3 - /usr/local/bin/node
      Yarn: 1.22.4 - ~/.yarn/bin/yarn
      npm: 8.3.1 - /usr/local/bin/npm
    npmGlobalPackages:
      typescript: 4.6.3

补充信息

期望尽快修复,目前需要将现有的taro项目兼容快手。

@taro-bot2 taro-bot2 bot added F-react Framework - React T-kwai V-3 Version - 3.x labels Mar 25, 2022
@github-actions
Copy link
Contributor

@bobsam
Copy link
Author

bobsam commented Mar 25, 2022

NervJS/taro-plugin-platform-kwai#16
同步在插件那边提了问题

@skys215
Copy link

skys215 commented Mar 26, 2022

字节小程序同样报这个问题

@skys215
Copy link

skys215 commented Mar 27, 2022

楼主是拿h5项目适配taro的吗?还是在从零开发中遇到的呢?

@bobsam
Copy link
Author

bobsam commented Mar 28, 2022

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

@bobsam
Copy link
Author

bobsam commented Mar 28, 2022

楼主是拿h5项目适配taro的吗?还是在从零开发中遇到的呢?

拿微信小程序版本适配。

@AdvancedCat
Copy link
Member

已在 NervJS/taro-plugin-platform-kwai#16 回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-kwai V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants