Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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
- Create new project and ensure using @ionic/vue 8.4.5+
- import any ionic component and attempt to use the
router-link
prop as described in the docs - attempt to build the project using
npm run build
- invalid type error is produced
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