Skip to content
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
alexsasharegan opened this issue May 20, 2018 · 7 comments · Fixed by #206

Comments

@alexsasharegan
Copy link

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:

ezolenko/rollup-plugin-typescript2#78

@vankooch
Copy link

I've the same problem here

@CyberNika
Copy link

+1

@CyberNika
Copy link

CyberNika commented Jun 22, 2018

has fixed? @alexsasharegan does it work now for u?

@alexsasharegan
Copy link
Author

The issue is still open at rollup-plugin-typescript2. Haven't heard much yet if it's been fixed. Sounded like it's an issue there though

@CyberNika
Copy link

Thx. Hope we can hear some good news.

@alexsasharegan
Copy link
Author

I sent the maintainer another ping.

@vanppo
Copy link

vanppo commented Apr 3, 2020

same issue with @rollup/plugin-typescript

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants