b2nil / taro-ui-vue3

采用 Vue 3.0 重写的 Taro UI 组件库
https://b2nil.github.io/taro-ui-vue3/
MIT License
160 stars 51 forks source link

'@tarojs/components' does not contain an export named 'View'. #109

Closed boonook closed 3 years ago

boonook commented 3 years ago

问题描述

在h5运行环境下报错 '@tarojs/components' does not contain an export named 'View'.

版本信息

"@tarojs/components": "3.2.13", "@tarojs/runtime": "3.2.13", "@tarojs/taro": "3.2.13", "taro-ui-vue3": "^1.0.0-alpha.21", "vue": "^3.0.0", "vuex": "^4.0.0-beta.4"

涉及的平台

H5

错误信息

./node_modules/taro-ui-vue3/dist/index.esm.js 11498:18-22
" '@tarojs/components' does not contain an export named 'View'.

代码

import { createApp } from 'vue';
import { createUI } from 'taro-ui-vue3';
import 'taro-ui-vue3/dist/style/index.scss'
import store from '@store/index'

import './app.scss'

const App = createApp({
  onShow (options) {},
  // 入口组件不需要实现 render 方法,即使实现了也会被 taro 所覆盖
})

App.use(store)
// 引用全部组件
const tuv3 = createUI()
App.use(tuv3);

export default App