Giter Club home page Giter Club logo

Comments (6)

lq782655835 avatar lq782655835 commented on June 14, 2024

确认下package.json中安装的vuepress是1.x版本,element-ui插件是基于1.x版本(vuepress v0.x与1.x改动很大),readme中有备注

yarn add vuepress-plugin-element-ui -D

如果还没成功,可查看本项目example源码,该案例就是使用vuepress + vuepress-plugin-element-ui实现。

from vuepress-plugin-element-ui.

PentaTea avatar PentaTea commented on June 14, 2024

版本应该没问题,目前怀疑是某些依赖找不到...我再研究一下

from vuepress-plugin-element-ui.

alexeyzimarev avatar alexeyzimarev commented on June 14, 2024

I have the same issue.

Here is the extract from my package.json:

  "devDependencies": {
    "chalk": "^2.0.0",
    "commander": "^2.0.0",
    "esm": "^3.0.0",
    "markdown-it-container": "latest",
    "markdown-it-mermaid": "^0.2.5",
    "markdown-it-vuepress-code-snippet-enhanced": "^1.0.1",
    "vuepress": "^1.4.0",
    "vuepress-plugin-element-ui": "^1.0.2",
    "vuepress-plugin-one-click-copy": "^1.0.2",
  },

I get the same error.

from vuepress-plugin-element-ui.

alexeyzimarev avatar alexeyzimarev commented on June 14, 2024

Also, I changed your docs to use the package instead of referencing the plugin from the repo and the error is there again.

from vuepress-plugin-element-ui.

alexeyzimarev avatar alexeyzimarev commented on June 14, 2024

The issue that in the package.json for this module the main should be src/index.js and not it is index.js

from vuepress-plugin-element-ui.

lq782655835 avatar lq782655835 commented on June 14, 2024

@alexeyzimarev thanks,I have corrected the bug。
Thanks again

from vuepress-plugin-element-ui.

Related Issues (8)

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.