-
Notifications
You must be signed in to change notification settings - Fork 479
Failed to construct transformer: Error: Failed to start watch mode. #1804
Comments
try reverting to sdk 36 and running the |
@brentvatne thanks for your response. Trying to rely on This is the output of
No changes appear to have been made to the filesystem in the |
there is something wrong with the yarn setup on your machine, it's hard to say but it seems that invoking it via |
see this existing issue: #1455 |
if you can reproduce after fixing that then i'll reopen the issue, let me know! |
That doesn't seem to be the issue unfortunately, unless I'm misunderstanding. I assume > which yarn
> C:\Program Files (x86)\Yarn\bin\yarn.CMD
> which yarnpkg
> C:\Program Files (x86)\Yarn\bin\yarnpkg.CMD We're using If |
@slapbox - you should be able to run |
@brentvatne thanks for the advice. I tried
It seems to be related to this yarnpkg/yarn#7807 (comment) Several solutions are suggested which people seem to have success with. Seems the underlying issue is this: yarnpkg/yarn#7734 I tried deleting my
Trying the next suggested solution: Update: Nope. Using |
ooh interesting! so it seems like an issue with using |
It does appear to be related to workspaces/monorepo usage, unfortunately. Any thoughts besides trying yarn 1.18.0? (Which I'm trying to find an installer for currently) |
not really familiar with debugging this kind of issue. if yarn works then the upgrade command will work though |
I figured as much but never hurts to ask for advice. Is there any good reference for what I should do to upgrade manually if it comes to that? |
well if you can't run |
another thing - if you can't get yarn working you should still see the packages that it fails to install listed along with the message about it failing. i added this yesterday in response to this thread just in case eg: in your above message
i'm not sure how you are using yarn if |
That's what I would think, but all my experience aligns with one of the comments from that issue:
|
@brentvatne I had thought that was the case but then I noticed that the versions for all the I've downgraded yarn to Thanks a lot, I really appreciate your help! |
@brentvatne Unfortunately the original issue persists after getting the versions upgraded properly via |
I reviewed our Babel configuration and made it match the default as closely as possible, having no idea if that's related at all. Unfortunately that didn't make a difference. |
can you share a minimal reproducible example? maybe strip out parts from your codebase until the bare minimum is left for this to still happen. my guess based on your issues with yarn is that this another tooling problem and perhaps related to workspaces |
@brentvatne I got it halfway fixed. I stupidly didn't ensure that Unfortunately it seems like half the time that I start the project I need to manually clear out There's no way to know if the cache is invalid though without waiting 4 minutes for the build process to tell you it can't start watch mode. So that has me pre-emptively clearing the Metro cache, which means something like 7-8 minutes to start the project, and sooner or later the server stops responding and I need to end it with Can you let me know exactly what A more general question, do you know what affects initial build time so I can try to make this process go faster and reach a firm answer about the cause/solution? Do unused, unreferenced dependencies add to the cache build time simply by existing in the Sorry, this got a bit longer than I meant it to be. |
expo-cli/packages/xdl/src/Project.ts Lines 1825 to 1828 in 4c41e0a
there are lots of factors that impact build time, eg: babel transforms that you use. i think this is a more general question you could ask to the metro team to see if maybe they have some tooling to help you better understand where the time is being spent in cold build of your app |
I am experiencing the same issue. My current expo environment is: Expo CLI 3.20.1 environment info: |
This issue does indeed persist for me. I think it's just the Metro cache folder that matters, but I run this command and it works:
|
I noticed installing Watchman seems to have fixed my issues |
Installing Watchman doesn't make a difference in my case (Windows.) |
I'm having same issue, I have tried all above recommended solutions, Nothing works, can some one advise me? |
@manny1001 environment info? OS/version/Expo CLI version/anything else relevant? |
same shit here |
I faced this issue when I first started my project using a specific version of node (10). Later, when I went back to the project to keep developing, I forgot to use the same node version and started to get this issue. Going back to the version that I used to create the project worked for me. |
run |
had faced the same issue multiple times, this always worked in my case
|
still a thing with a fresh install, none of the above solutions work |
@Dakuan - if you are experiencing this, create a new issue and provide as much information as possible to help people understand. also, if you haven't done so already, try installing watchman: https://facebook.github.io/watchman/ |
not compatible with latest node was my issue.... |
This happened to me today while running my app on Expo GO. Since you're using yarn, try Restart your project with And that's all. |
For me, simply restarting my system worked. |
Required format for issues
Please make our job easier by filling this template out to completion.
Description
expo start
results in the following error message no matter what I try. Perhaps caused by a failure ofexpo upgrade
? When usingexpo upgrade
we get:\ Updating packages to compatible versions (where known).yarnpkg exited with non-zero code: 1
- so we upgraded everything manually. I'm pretty certain everything is setup correctly.We tried clearing Haste and Metro caches, and
expo start -c
, but the outcome is always the same. Also tried removingpackagerOpts
from ourapp.json
.Expected Behavior
Development bundle builds properly
Observed Behavior
The following error:
Environment
Also specify:
Reproducible Demo
N/A
The text was updated successfully, but these errors were encountered: