vendors-node_modules_taro_weapp_prebundle_vue_js.js?t=wechat&s=1663230181230&v=f2e7429591651ae9d4e275c376c3fafc:3437 [Vue warn]: Error in data(): "ReferenceError: process is not defined"
found in
---> at node_modules/taro-ui-vue/src/components/tabs/index.vue
at src/pages/my/index.vue
(env: macOS,mp,1.06.2209070; lib: 2.26.0)
[Vue warn]: Property or method "tabId" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> at node_modules/taro-ui-vue/src/components/tabs/index.vue
at src/pages/my/index.vue
(env: macOS,mp,1.06.2209070; lib: 2.26.0)
### 环境信息
```
Taro CLI 3.5.5 environment info:
System:
OS: macOS 12.5.1
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.3 - ~/.nvm/versions/node/v14.17.3/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.3/bin/npm
npmPackages:
@tarojs/cli: 3.5.5 => 3.5.5
@tarojs/components: 3.5.5 => 3.5.5
@tarojs/helper: 3.5.5 => 3.5.5
@tarojs/mini-runner: 3.5.5 => 3.5.5
@tarojs/plugin-framework-vue2: 3.5.5 => 3.5.5
@tarojs/plugin-platform-alipay: 3.5.5 => 3.5.5
@tarojs/plugin-platform-jd: 3.5.5 => 3.5.5
@tarojs/plugin-platform-qq: 3.5.5 => 3.5.5
@tarojs/plugin-platform-swan: 3.5.5 => 3.5.5
@tarojs/plugin-platform-tt: 3.5.5 => 3.5.5
@tarojs/plugin-platform-weapp: 3.5.5 => 3.5.5
@tarojs/router: 3.5.5 => 3.5.5
@tarojs/runtime: 3.5.5 => 3.5.5
@tarojs/shared: 3.5.5 => 3.5.5
@tarojs/taro: 3.5.5 => 3.5.5
@tarojs/taro-h5: 3.5.5 => 3.5.5
@tarojs/webpack5-runner: ^3.5.5 => 3.5.5
babel-preset-taro: 3.5.5 => 3.5.5
eslint-config-taro: 3.5.5 => 3.5.5
```
相关平台
微信小程序
小程序基础库: 2.26.0 使用框架: Vue 2
复现步骤
Taro 版本3.5.5 webpack5
当使用AtTabs组件时,微信小程序开发工具会提示错误
代码:
期望结果
无错误提示
实际结果
vendors-node_modules_taro_weapp_prebundle_vue_js.js?t=wechat&s=1663230181230&v=f2e7429591651ae9d4e275c376c3fafc:3437 [Vue warn]: Error in data(): "ReferenceError: process is not defined"
found in
---> at node_modules/taro-ui-vue/src/components/tabs/index.vue