Skip to content

Migration tool bombs out on sveltesociety.dev #6088

@benmccann

Description

@benmccann

Describe the bug

I can't run the migration tool on the sveltesociety.dev repo

Reproduction

git clone [email protected]:svelte-society/sveltesociety.dev.git
cd sveltesociety.dev
git checkout staging
npm install
npx svelte-migrate routes

Logs

$ npx svelte-migrate routes
Need to install the following packages:
  svelte-migrate
Ok to proceed? (y) 

This will overwrite files in the current directory!

✔ Continue? … yes

file:/~/.npm/_npx/ca732f115159e57c/node_modules/svelte-migrate/migrations/routes/migrate_page_js/index.js:88
								: is_new(nodes.error, 'Error') && nodes.error.arguments[0].getText();
								                                                           ^

TypeError: Cannot read properties of undefined (reading 'getText')
    at file:/~/.npm/_npx/ca732f115159e57c/node_modules/svelte-migrate/migrations/routes/migrate_page_js/index.js:88:68
    at walk (file:/~/.npm/_npx/ca732f115159e57c/node_modules/svelte-migrate/migrations/routes/utils.js:373:5)

System Info

I upgraded to `@sveltejs/[email protected]` already: https://github.com/svelte-society/sveltesociety.dev/commit/00536227b54d68cdd41e407e86fb6dfa30680f24

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions