vuepress / vuepress-plugin-mathjax

:page_with_curl: Use TeX in VuePress.
https://vuepress.github.io/plugins/mathjax.html
MIT License
32 stars 10 forks source link

[vuepress]: cannot resolve plugin "mathjax" #11

Closed ChungZH closed 5 years ago

ChungZH commented 5 years ago

I can't use this plugin.

Here's my config:

···
    'mathjax': { 
      target: 'svg',
      presets: [
        '\\def\\lr#1#2#3{\\left#1#2\\right#3}',
      ],
    },
···

Here's my package.json:

{
  "name": "chungzh-blog",
  "description": "ChungZH's blog",
  "author": "ChungZH <chung.zh@qq.com>",
  "license": "MIT",
  "version": "5.0.0",
  "scripts": {
    "dev": "cross-env NODE_ENV=development vuepress dev src --temp ./.temp",
    "build": "cross-env NODE_ENV=production vuepress build src -d ./dist --temp ./.temp"
  },
  "dependencies": {
    "@vssue/vuepress-plugin-vssue": "^0.5.1",
    "@vuepress/plugin-back-to-top": "^1.0.0-alpha.35",
    "@vuepress/plugin-blog": "^1.0.0-alpha.35",
    "@vuepress/plugin-google-analytics": "^1.0.0-alpha.0",
    "@vuepress/plugin-medium-zoom": "^1.0.0-alpha.35",
    "@vuepress/plugin-nprogress": "^1.0.0-alpha.35",
    "date-fns": "^1.30.1",
    "geopattern": "^1.2.3",
    "lodash.debounce": "^4.0.8",
    "lodash.throttle": "^4.1.1",
    "vuepress": "^1.0.0-alpha.48",
    "vuepress-plugin-container": "^1.1.1",
    "vuepress-plugin-mathjax": "^1.2.4",
    "vuepress-plugin-nprogress": "^1.0.0",
    "vuepress-plugin-smooth-scroll": "^0.0.3",
    "vuepress-plugin-zooming": "^1.0.0",
    "vuepress-theme-meteorlxy": "^1.0.0-alpha.38"
  },
  "devDependencies": {
    "cross-env": "^5.2.0",
    "vuepress-plugin-baidu-autopush": "^1.0.1",
    "vuepress-plugin-sitemap": "^2.1.1"
  }
}
moyu-x commented 5 years ago

when I upgrade the vuepress to v1.0.0, I have the same problem, and my config is same to you. I use global install cant no resolve the problem.

shigma commented 5 years ago

@ChungZH @idwangmo I have just released a new version 1.2.8. Does it solve your problem?

moyu-x commented 5 years ago

@Shigma I upgrade 1.2.8 solved it. Thank you.

belvederef commented 5 years ago

The [vuepress]: cannot resolve plugin "mathjax" problem persists with Vuepress version 1.0.3 and the latest version of this package (1.2.8). Downgrading to vuepress 1.0.0 solved the problem, though.