GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — vp migrate crashes with "Undefined meta var" when a migrated config string contains `$` · Issue #3045 · voidzero-dev/vite-plus Closed Copy link Labels bugSomething isn't working DescriptionDescribe the bug
The crash happens after migration has already deleted It looks like Expected: string values are inserted literally. I intend to submit a PR for this. ReproductionInline below. It needs three files and no repo. Steps to reproduce
{
"name": "vp-migrate-dollar-repro",
"private": true,
"type": "module",
"packageManager": "[email protected]",
"devDependencies": {
"vite": "8.2.2",
"eslint": "10.8.1"
}
}
export default [ { rules: { 'no-restricted-imports': ['error', { paths: [{ name: 'moment', message: 'Use date-fns. moment costs $200 of bundle budget.' }], }], }, }, ];
import { defineConfig } from 'vite'; export default defineConfig({}); git init && git add -A && git commit -m init pnpm install pnpm dlx [email protected] vp migrate --no-interactive git status --porcelain Result: exit code 1 with the error above. System Info# vp env current: not available, the global vp CLI is not installed (ran through pnpm dlx) $ pnpm dlx [email protected] vp -V vp v1.1.0 Local vite-plus: vite-plus v1.1.0 Tools: vite v8.3.3 rolldown v1.2.12 vitest v5.0.3 oxfmt v0.72.0 oxlint v1.87.0 oxlint-tsgolint v7.0.2003 macOS 26.6.2 arm64, Node v22.23.2, pnpm 10.14.0 Used Package Managerpnpm Logs■ Fail to parse yaml as Rule.
Error: Fail to parse yaml as Rule.
at mergeAndRemoveJsonConfig (vite-plus/dist/editor-B8tkz7nL.js:9238:17)
code: 'GenericFailure',
cause: Error: Undefined meta var `200` used in `fix`.
at mergeAndRemoveJsonConfig (vite-plus/dist/editor-B8tkz7nL.js:9238:17)
at mergeViteConfigFiles (vite-plus/dist/editor-B8tkz7nL.js:9184:3)
at rewriteMonorepoProject (vite-plus/dist/editor-B8tkz7nL.js:9988:2)
at rewriteRootWorkspacePackageJson (vite-plus/dist/editor-B8tkz7nL.js:7947:2)
at rewriteMonorepo (vite-plus/dist/editor-B8tkz7nL.js:9949:2)
at executeMigrationPlan (vite-plus/dist/migration/bin.js:3860:32)Validations
Activity
MetadataMetadataAssigneesLabelsbugSomething isn't working TypeFieldsPriority None yet Effort None yet Target date None yet Start date None yet ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |