-
-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typescript] Broken vue3 + rollup + typescript #608
Comments
Please see if any of these issues with the same error message addresses your issue: https://github.com/rollup/plugins/search?q=Expected+fileName+to+be+present+in+command+line&type=issues |
@shellscape, thanks for fast answer! Only this comment (#243 (comment)) with similar issue, but the issue where comment paced it not about it. Probably this is separate issue. Also in my reproduction repo I can suggess the nature of this bug: rollup-plugin-vue generates virtual files (i.e. |
I don't think we're going to be able to resolve this one at present. The nature of the typescript plugin here is that it has to know about all files. You might have to go with a different typescript plugin that doesn't use the same |
This comment has been minimized.
This comment has been minimized.
@spaceemotion we don't offer support here, and typescript2 is not a plugin in this repo. |
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ |
The cause of the problem is that the plugin simply doesn't pick up the file names used (generated) by rollup-plugin-vue. See this repository for a simple example with some debugging output. The file
|
I also encountered this situation, will solve later |
Did you solve it? I'm just like you right now, looking everywhere |
I've used another typescript plugin instead of this "official" one (as mentioned above). |
I worked late that night, and I was using another TypeScript
|
Expected Behavior
Working bundle.
Actual Behavior
[!] (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
Additional Information
Also reported to vue-rollup-plugin (vuejs/rollup-plugin-vue#400), but after some debug I suggess that bug is in plugin-typescript, because with rollup-plugin-typescript2 bundle built successfuly. Difference to plugin-typescript2 is official plugin-typescript uses function
ts.getOutputFileNames
, that produces failed assert.The text was updated successfully, but these errors were encountered: