b2nil / taro-ui-vue3

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

全局引入报错 #97

Closed yaoyanweb closed 3 years ago

yaoyanweb commented 3 years ago

问题描述

全局引入报错

版本信息

^1.0.0-alpha.20

涉及的平台

h5

错误信息

" '@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'

import './app.scss'
// 引用全部组件
const tuv3 = createUI()
const App = createApp({
  onShow (options) {},
  // 入口组件不需要实现 render 方法,即使实现了也会被 taro 所覆盖
})
console.log(tuv3,'tuv3')
App.use(tuv3)
App.use(store)

export default App
b2nil commented 3 years ago

h5 的编译配置按照文档进行设置了吗?