Vue 2 examples won't run
bmulholland opened this issue Ā· comments
Brendan Mulholland commented
Describe the bug
I'm trying to create a minimal repro for another bug, as requested. I'm trying to start with one of the examples from this repo and they won't work.
To repro:
- Clone this repro
- Build repo
- cd to examples for vue2 vite of vue cli
- pnpm install
- pnpm dev
This errors out:
Vue packages version mismatch:
- vue@2.7.8 (/Users/bmulholland/dev/recital/repros/vue2-icon-events/node_modules/.pnpm/vue@2.7.8/node_modules/vue/dist/vue.runtime.common.js)
- vue-template-compiler@2.7.14 (/Users/bmulholland/dev/recital/repros/vue2-icon-events/node_modules/.pnpm/vue-template-compiler@2.7.14/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.
at Object.<anonymous> (/Users/bmulholland/dev/recital/repros/vue2-icon-events/node_modules/.pnpm/vue-template-compiler@2.7.14/node_modules/vue-template-compiler/index.js:10:9)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at cjsLoader (node:internal/modules/esm/translators:284:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:234:7)
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async importModule (file:///Users/bmulholland/dev/recital/repros/vue2-icon-events/node_modules/.pnpm/local-pkg@0.5.0/node_modules/local-pkg/dist/index.mjs:303:13)
Reproduction
this repo
System Info
System:
OS: macOS 14.1.1
CPU: (10) arm64 Apple M1 Pro
Memory: 255.94 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.9.0 - ~/.asdf/installs/nodejs/20.9.0/bin/node
npm: 10.2.4 - ~/.asdf/plugins/nodejs/shims/npm
Watchman: 2023.11.13.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 119.0.6045.159
Edge: 119.0.2151.72
Firefox: 119.0.1
Safari: 17.1
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.