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 3.6.* 无法启动storybook #209

Open
saury opened this issue Dec 1, 2023 · 1 comment
Open

Taro 3.6.* 无法启动storybook #209

saury opened this issue Dec 1, 2023 · 1 comment

Comments

@saury
Copy link

saury commented Dec 1, 2023

相关平台

微信小程序

小程序基础库: 与该问题无关
使用框架: React

复现步骤

Taro自己官方文档:https://taro-docs.jd.com/docs/external-libraries#storybook
压根起不来,看了下node_modules里'@tarojs/taro-h5/dist/taroApis'这个文件已经没有了。。。

期望结果

可以启动storybook

实际结果

error

环境信息

👽 Taro v3.6.18


  Taro CLI 3.6.18 environment info:
    System:
      OS: macOS 14.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.18.1 - ~/.nvm/versions/node/v18.18.1/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.13.2/bin/yarn
      npm: 9.8.1 - ~/.nvm/versions/node/v18.18.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.20 => 3.6.20
      @tarojs/components: 3.6.20 => 3.6.20
      @tarojs/mini-runner: 3.6.20 => 3.6.20
      @tarojs/plugin-framework-react: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-h5: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-weapp: 3.6.20 => 3.6.20
      @tarojs/react: 3.6.20 => 3.6.20
      @tarojs/runtime: 3.6.20 => 3.6.20
      @tarojs/taro: 3.6.20 => 3.6.20
      @tarojs/webpack-runner: 3.6.20 => 3.6.20
      @tarojs/webpack5-runner: ^3.6.19 => 3.6.19
      babel-plugin-transform-taroapi: ^3.6.20 => 3.6.20
      babel-preset-taro: 3.6.20 => 3.6.20
      eslint-config-taro: 3.6.20 => 3.6.20
      react: ^17.0.0 => 17.0.2
@ZakaryCode ZakaryCode transferred this issue from NervJS/taro Dec 1, 2023
@ZakaryCode
Copy link
Contributor

确实过时了,可以将 babel 引用的类型描述文件可以改为 @tarojs/plugin-platform-h5/dist/definition.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants