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

使用vue-devtools 闪退且报错 #12452

Closed
JuYiYang opened this issue Sep 7, 2022 · 1 comment · Fixed by #12523
Closed

使用vue-devtools 闪退且报错 #12452

JuYiYang opened this issue Sep 7, 2022 · 1 comment · Fixed by #12523
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@JuYiYang
Copy link

JuYiYang commented Sep 7, 2022

相关平台

微信小程序

小程序基础库: 2.25.4
使用框架: Vue 3

复现步骤

npm i @tarojs/plugin-vue-devtools
config/index.js plugins: ['@tarojs/plugin-vue-devtools'],

期望结果

正常且稳定的打开

实际结果

打开不到一秒 就退出了devtools 且控制台报错
throw new _ValidationError.default(errors, schema, configuration);
^

ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

  • configuration has an unknown property 'provide'. These properties are valid:
    object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, experiments?, externals?, externalsPresets?, externalsType?, ignoreWarnings?, infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, snapshot?, stats?, target?, watch?, watchOptions? }
    -> Options object as provided by the user.
    For typos: please correct them.

环境信息

Taro v3.5.4


提示  正在启动 vue-devtools...


  Taro CLI 3.5.4 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.14.0 - D:\node.EXE
      Yarn: 1.22.19 - C:\Users\Administrator\AppData\Roaming\npm\yarn.CMD
      npm: 8.3.1 - D:\npm.CMD


补充信息

我需要看到页面的数据源

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 7, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 19, 2022

@JuYiYang 感谢反馈,vue devtools 的 taro 插件需要兼容 Webpack5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants