-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
rollup fails to resolve entry file when using --watch, seemingly at random #982
Comments
my setup here: https://github.com/hpfast/rollup-error |
I wonder if I'm hitting something like this issue in rollup-watch? rollup/rollup-watch#4 I have the problem when using Vim, but not with Leafpad. |
If the problem is editor dependent, I've experienced something similar using Sublime Text. There was an atomic save mode which for every save created a new file and renamed it. It may be that you're experiencing something similar with Vim and Leafpad. Are you having this issue with the latest version of rollup-watch? |
Hi, I wonder what this means for the general topic of watching for changes (see my back-reference from rollup/rollup-watch#16), but since digging into that is a bit above my head I think I'll try a workaround for now, and just use a separate file watcher (nodemon, etc) to retrigger rollup. The project I'm working on atm is small enough that I can live without incremental rebuilds for now. |
I'm running into similar issues - funnily enough it does not seem to happen when I use the |
I just came across this, apparently you can configure Vim to write a new file or not: it looks like this would be a good workaround for Vim users. I'll try it in a bit. |
@hpfast 👍 Although the issue should be addressed eventually. |
I tried what @hpfast linked, setting vim config modes, but it does not seem to fix the issue, I can reliably reproduce the issue, so I've encapsulated it in this repository/branch: https://github.com/chielkunkels/rollup-issue/tree/issue2 Steps to reproduce:
At this point everything is working fine, the initial build goes fine - one thing to note at this point is that it says However, when you try to edit
Hopefully this can aid in tracking down the issue. |
One thing to note, is that it only breaks when saving |
Did anyone have any chance to look into this at all? I'm more than willing to help if I get some kind of pointer on where to start. |
Hey @chielkunkels 👋, patch above is a workaround. See pr #1087. |
Hah, hey @EmielM - I'm actually transpiling my server-side code purely with babel now, to circumvent this issue. If I run into it again I will definitely check out the patch though. |
I'm experiencing the same issue on Ubuntu. |
I am actually still getting this issue on OS X as well. |
|
Can this issue be closed? |
@nolanlawson, it still happens here on osx
update: looks it just happens if i use rollup-plugin-typescript2, ill dig deeper ;) |
the same,
config
rollup -w -c build/rollup.dev.js |
I've logged a separate issue for the error I'm getting while using watch mode - #2513 |
Is there any workaround for this? |
I created a minimum minimum minimum repo for this issue:
|
I am new in the rollup code base but it seems that:
|
I have the same problem. Have you solved the problem? |
same here |
@XindaSayHi @berkaey check out https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/. much more effective and less spammy than comments for reporting same behavior 😉 |
@shellscape correct! but I did it intentionally so the issue can resolve most importantly you guys are be sure is the issue is really an issue, I wasn't sure if it is fixed or not (think my problem could be related to my codebase because original issue created on Sep 24, 2016) anyways, will do that from now on! thanks. |
I tried rollup-plugin-typescript2 but i still have the same error. Any idea what's wrong? |
I also get the same error using rollup 1.17 and rollup-plugin-typescript2 0.22.1. If I save my entry file, it reloads correctly. If I save a dependency file, I get the error
It's not random, though. It happens every time. I finally think I figured out the issue. I had a In my
which did not include my
This is a pretty specific error, but someone else might run into it as well. |
Hey folks. This is a saved-form message, but rest assured we mean every word. The Rollup team is attempting to clean up the Issues backlog in the hopes that the active and still-needed, still-relevant issues bubble up to the surface. With that, we're closing issues that have been open for an eon or two, and have gone stale like pirate hard-tack without activity. We really appreciate the folks have taken the time to open and comment on this issue. Please don't confuse this closure with us not caring or dismissing your issue, feature request, discussion, or report. The issue will still be here, just in a closed state. If the issue pertains to a bug, please re-test for the bug on the latest version of Rollup and if present, please tag @shellscape and request a re-open, and we'll be happy to oblige. |
I'm just trying rollup for the first time and cannot figure this error out involving --watch. I've set up a simple project and compile src/scripts/main.js to build/js/main.min.js. As the console output below shows, I save the source file multiple times (sometimes with a change, sometimes without) until eventually I get this error. The number of times it succeeds varies, and I can't tell if waiting longer helps.
I've gradually stripped out all plugins from my rollup.config.js. I was using uglify, replace, babel, eslint, commonjs, and resolve, but the error persists even with the following config:
I have rollup-watch installed locally because rollup complains it can't find it globally (I think because on Ubuntu I have to use sudo to install it globally)
Console output:
The text was updated successfully, but these errors were encountered: