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.
v4 typescript compatibility: Could not find file component.vue?rollup-plugin-vue=script.ts
#204
Closed
Description
Expected behavior
Should work with 3rd party plugins--in this case, rollup-plugin-typescript2
.
Actual behavior
Fails to resolve typescript portion of .vue
file. This issue was first filed in the plugin repo, but @ezolenko was not able to find the issue. It sounds like a breaking plugin api change.
[!] (rpt2 plugin) Error: Could not find file: '~/github.com/alexsasharegan/vue-transmit/src/components/VueTransmit.vue.ts?rollup-plugin-vue=script.ts'.
src/components/VueTransmit.vue.ts?rollup-plugin-vue=script.ts
Error: Could not find file: '~/github.com/alexsasharegan/vue-transmit/src/components/VueTransmit.vue.ts?rollup-plugin-vue=script.ts'.
at getValidSourceFile (~/github.com/alexsasharegan/vue-transmit/node_modules/typescript/lib/typescript.js:103163:23)
at Object.getEmitOutput (~/github.com/alexsasharegan/vue-transmit/node_modules/typescript/lib/typescript.js:103506:30)
at ~/github.com/alexsasharegan/vue-transmit/node_modules/rollup-plugin-typescript2/src/index.ts:192:28
at TsCache.getCompiled (~/github.com/alexsasharegan/vue-transmit/node_modules/rollup-plugin-typescript2/src/tscache.ts:174:27)
at Object.transform (~/github.com/alexsasharegan/vue-transmit/node_modules/rollup-plugin-typescript2/src/index.ts:190:27)
at ~/github.com/alexsasharegan/vue-transmit/node_modules/rollup/dist/rollup.js:17508:48
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
Steps to reproduce the behavior
View the detailed description in the original issue filed with rollup-plugin-typescript2: