Giter Site home page Giter Site logo

Comments (8)

tolking avatar tolking commented on September 27, 2024

You can try to install element-pro-components through npm first. It may be Yarn's fault 🤔

from element-pro-components.

yasminyt avatar yasminyt commented on September 27, 2024

用npm可以安装,但是运行项目时是报错的
企业微信截图_fbb6d05e-673a-4897-8650-832c9e500551

另外文档上写的
import 'element-pro-components/lib/styles/index'
我看包中的目录结构里已经没有 styles 这个目录
image

安装下来的版本为 "element-pro-components": "^1.5.0"

from element-pro-components.

tolking avatar tolking commented on September 27, 2024

最新版是 1.2.9 。

这1.5.0难道是我之前发错的版本号,我记得从npm中删除了啊

from element-pro-components.

yasminyt avatar yasminyt commented on September 27, 2024

指定1.2.9版本进行安装,yarn和npm都可安装成功,但是yarn、npm安装时都是默认安装下来的是1.5.0

另外1.2.9的包里styles目录也是缺失的,目前无法正常引入样式文件
image

运行还是会报错😂
image

只是一个普通的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.

tolking avatar tolking commented on September 27, 2024

yarn add [email protected]

先安装指定版本吧,这个需要去 npm 看看

你使用的是 npm 还是 cnpm ?

1.5.0 在npm上根本不存在

from element-pro-components.

yasminyt avatar yasminyt commented on September 27, 2024

用的是npm,,,

目前引入1.2.9版本的包,也无法正常启动项目,相关报错在前面的截图哈,麻烦看看咧

from element-pro-components.

tolking avatar tolking commented on September 27, 2024

你可以查看 element-pro-components 目录下的 package.json 的版本,版本不对目录文件就不对

from element-pro-components.

yasminyt avatar yasminyt commented on September 27, 2024

你可以查看 element-pro-components 目录下的 package.json 的版本,版本不对目录文件就不对

嗷嗷,昨天安装成了≥1.2.9,所以实际element-pro-components下的package.json还是1.5.0,导致上面所说的异常~

感谢耐心解答🫡

from element-pro-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.