Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue packages version mismatch when trying to use @component plugin #248

Open
Patrex97 opened this issue Jun 30, 2023 · 2 comments
Open

Vue packages version mismatch when trying to use @component plugin #248

Patrex97 opened this issue Jun 30, 2023 · 2 comments

Comments

@Patrex97
Copy link

I want to add jsdoc to my vue project after adding @component plugin from better-docs. I face error.

Error message:

Vue packages version mismatch:

- [email protected] (C:\Users\patre\OneDrive\Pulpit\Work\instore\app\node_modules\vue\index.js)
- [email protected] (C:\Users\patre\OneDrive\Pulpit\Work\instore\app\node_modules\vue-template-compiler\package.json)

This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

jsdoc.json

{
    "plugins": [
        "node_modules/better-docs/component"
    ],
    "source": {
        "includePattern": "\\.(vue|js)$",
        "include": [
            "./src/App.vue"
        ]
    },
    "sourceType": "module",
    "recurseDepth": 10,
    "opts": {
        "destination": "./docs/App.vue",
        "recurse": true
    },
    "tags": {
        "allowUnknownTags": true,
        "dictionaries": [
            "jsdoc",
            "closure"
        ]
    },
    "templates": {
        "cleverLinks": false,
        "monospaceLinks": false
    }
}

package.json

	"dependencies": {
		"@glidejs/glide": "^3.6.0",
		"@vitejs/plugin-legacy": "^4.0.4",
		"@vueuse/components": "^10.1.2",
		"@vueuse/core": "^10.1.2",
		"pinia": "^2.1.3",
		"vue": "^3.3.4",
		"vue-router": "^4.2.2"
	},
	"devDependencies": {
		"@vitejs/plugin-vue": "^4.2.3",
		"@vue/compiler-sfc": "^3.3.4",
		"better-docs": "^2.7.2",
		"jsdoc": "^4.0.2",
		"sass": "^1.62.1",
		"terser": "^5.17.7",
		"vite": "^4.3.9"
	}

I tried to install vue-loader and vue-template-compiler as dependencies but it didn't change anything.

@Johansenlbw
Copy link

I am also encountering the same problem.

@hermesalvesbr
Copy link

Same here, any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants