Comments (8)
You can try to install element-pro-components through npm first. It may be Yarn's fault 🤔
from element-pro-components.
另外文档上写的
import 'element-pro-components/lib/styles/index'
我看包中的目录结构里已经没有 styles 这个目录
安装下来的版本为 "element-pro-components": "^1.5.0"
from element-pro-components.
最新版是 1.2.9 。
这1.5.0难道是我之前发错的版本号,我记得从npm中删除了啊
from element-pro-components.
指定1.2.9版本进行安装,yarn和npm都可安装成功,但是yarn、npm安装时都是默认安装下来的是1.5.0
另外1.2.9的包里styles目录也是缺失的,目前无法正常引入样式文件
只是一个普通的vue3项目,想测试下对本库的引用,后续打算在你的基础上继续扩展,因为代码结构什么的看起来很不错👍
// package.json
{
"name": "vue3",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"element-plus": "^2.2.9",
"element-pro-components": "^v1.2.9",
"unplugin-auto-import": "^0.9.3",
"unplugin-vue-components": "^0.21.1",
"vue": "^3.2.37"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.0",
"vite": "^3.0.0"
}
}
from element-pro-components.
yarn add [email protected]
先安装指定版本吧,这个需要去 npm 看看
你使用的是 npm 还是 cnpm ?
1.5.0 在npm上根本不存在
from element-pro-components.
用的是npm,,,
目前引入1.2.9版本的包,也无法正常启动项目,相关报错在前面的截图哈,麻烦看看咧
from element-pro-components.
你可以查看 element-pro-components 目录下的 package.json 的版本,版本不对目录文件就不对
from element-pro-components.
你可以查看 element-pro-components 目录下的 package.json 的版本,版本不对目录文件就不对
嗷嗷,昨天安装成了≥1.2.9,所以实际element-pro-components下的package.json还是1.5.0,导致上面所说的异常~
感谢耐心解答🫡
from element-pro-components.
Related Issues (20)
- 报错:在使用unplugin-vue-components 和 unplugin-auto-import这两款插件对element-plus进行按需引用时候 HOT 1
- 加一个Columns加一个属性editRender、detailRender支持render的函数动态渲染。 HOT 2
- 搜索和重置按钮添加图标没出现 HOT 3
- checkbox 选中事件无效 HOT 1
- table formatter无效 HOT 1
- undefined value for fields that are not edited HOT 1
- search-menu-right 插槽能改变下位置嘛 HOT 2
- 验证规则 HOT 2
- 官网国际化Bug HOT 2
- pro-layout Bug HOT 1
- array 类型报错is not a string HOT 3
- typo:过度 → 过渡
- [bug] pro-layout menu 卡槽没有把 collapse 参数暴露出来 HOT 7
- CRUD组件 自定义 pro-select 出现递归更新错误 HOT 1
- [BUG] pro-select 在搜索阶段样式变形,不会自适应大小 HOT 3
- 部分 Vue 版本下,组件没有类型提示,全部被视为 any 类型,无属性提示 HOT 1
- 无法自定义命名空间 HOT 2
- 路由跳转可访问性支持
- 事件参数文档描述完全错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element-pro-components.