Skip to content

bug: (vue) router-link has wrong type since 8.4.5/8.5.0 #30254

Closed
@mattschlosser

Description

@mattschlosser

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

router-link has the wrong type since 8.4.5. When attempting to build, the build fails with error TS2322

src/views/HomePage.vue:4:25 - error TS2322: Type 'string' is not assignable to type 'Symbol'.

4             <ion-button router-link="/about">
                          ~~~~~~~~~~~

Expected Behavior

vue-tsc produces no errors

Steps to Reproduce

  1. Create new project and ensure using @ionic/vue 8.4.5+
  2. import any ionic component and attempt to use the router-link prop as described in the docs
  3. attempt to build the project using npm run build
  4. invalid type error is produced
    Image

Code Reproduction URL

https://github.com/mattschlosser/ionic-vue-ts-demo/tree/router-link

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (C:\Users\...\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/vue 8.5.0

Capacitor:

Capacitor CLI : 7.0.1
@capacitor/android : not installed
@capacitor/core : 7.0.1
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v22.14.0 (C:\Program Files\nodejs\node.exe)
npm : 10.9.2
OS : Windows 10

Additional Information

#30221

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions