This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
Broken Vue 3 typescript #400
Open
Description
Version
6.0.0-beta10
Reproduction link
https://github.com/iassasin/vue3-rollup-ts-bug
Steps to reproduce
Clone example repository and npm run build
.
What is expected?
working bundle
What is actually happening?
[!] (plugin typescript) Error: Could not load .../MainView.vue?vue&type=script&lang.ts (imported by MainView.vue): Debug Failure. False expression: Expected fileName to be present in command line
What I did wrong? Looks like rollup-plugin-vue bug.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
Smashman commentedon Oct 23, 2020
Ensure that the
rollup-plugin-vue
plugin is run before@rollup/plugin-typescript
.iassasin commentedon Oct 24, 2020
@Smashman, if use this order of plugins, then error changes:
Error:
Looks like typescript doesn't recognized at all.
Btw, see issue in typescript plugin (rollup/plugins#608), maybe this issue doesn't related to rollup-plugin-vue, because with rollup-plugin-typescript2 config from my reproduction works great.
kris-ellery commentedon Nov 24, 2020
@iassasin I had the same issue, switching from
@rollup/plugin-typescript
torollup-plugin-typescript2
fixed it.iassasin commentedon Nov 25, 2020
@kris-ellery, yes, I use this workaround too, but it's strange if it shouldn't work with official ts plugin.
Mister-Hope commentedon Jan 6, 2021
Agree with that, I waste 15 minutes on the official plugin before finding out the example is using
rollup-plugin-typescript2
mnlipp commentedon Feb 28, 2021
I think its a bug in the "official plugin" (see rollup/plugins#608).