-
Notifications
You must be signed in to change notification settings - Fork 71
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
Could not find source file
when running in watch mode with rollup-plugin-vue
#271
Comments
Could not find source file
when running in watch mode with rollup-plugin-vue
another workaround
bit of investigation
EDIT: ^that all seems to be unrelated 😕 . was chasing a red herring, my bad |
Hmm... looking at some older watch mode issues (see the new label) it seems that was supposed to have been fixed by #32. And that it's popped up a few times. That and #95 also suggest the issue might be within the |
Ah I've traced the bug and figured it out! Turns out this is a regression that was actually caused by the fix for #95. This line was added to I'll write up a PR for this in a jiffy! EDIT: see #364 |
Great news. Thank you for taking the time to fix this. I can go back to using rollup's watch instead of relying on nodemon during development. |
What happens and why it is wrong
When running rollup in watch mode, the project will initially compile but changes to some files that trigger rollup watch, will cause a source file not found error from rp2:
Repository with reproduction code
Steps to reproduce:
rollup -c rollup.config.js --watch
module2.ts
orindex.ts
. Note that triggering watch withmodule1.ts
will not produce the error.I assume this is related to the directory structure of the project which uses
baseUrl
to point up to the "lib" dir. Also, I was not able to reproduce this without Vue.Environment
MacOS 10.15
Node 16
The text was updated successfully, but these errors were encountered: