-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Spurious error when installing nightly build #1541
Comments
Looks like the error is it can't find gen-flow-files directory. Maybe the command needs to yarn install before triggering gen-flow-files? |
Was able to get around the error with |
That post-build script is used to generate the Flow files and should already be done as part of the original install when the nightly branch was built. So, this error shouldn't be a problem and ignoring it should be safe. Would you be up to help adjust Or even better if we could find a better alternative to using/patching gen-flow-files... |
I think cleaning up might result in removing the gen-flow-files dependency at all, at least how it is integrated right now targeting a git repo at the source level, not a bundle after a build similar to what recoils nightly branch does. @drarmstr It seems you forked the gen-flow-files repo, made some changes with babel, and pushed the commits. My question is about the requirement to use the dependency; respectively, I`m questioning how flow files are spit out by this tool, corresponding to the recoils source folder structure. A way to prevent this may be a flow plugin for the rollup bundler. One thing to note is that the generated flow files are distributed for the commonJS format only. See e.g. https://github.com/facebookexperimental/Recoil/tree/nightly/cjs/core I don`t have experience with flow files and how to handle them. Thx! Update: Adding the following conversation for reference. |
Yes exactly, the proper cleanup is probably migrating |
@drarmstr I get this same error while trying install Recoil 0.6.0 ( |
same here |
The error can also be suppressed in yarn. Here is the necessary configuration in package.json
Tested with Yarn 3. If an app is deployed with NextJs / Vercel, presumably other providers are also affected, this configuration must be included, otherwise a deployment will fail. |
This error is showing up with the latest general release |
if it can help, meanwhile, I have published a clone without a "post-install" script, use it with yarn resolutions
|
@drarmstr Due to the large number of downloads (>77k) of the latest stable version 0.5.2, it might be appropriate to temporarily remove the post-install step and trigger new deployment on NPM. As described further above the incorrect build step tries to generate flow files after the download performed by a package manager. These are generated like the bundles themselves before a deployment, and shipped on NPM as well. A repeated build with missing sources on the client leads to the error. |
Fixed with #1577 and |
I'm attempting to install the nightly build via yarn but the command fails with this error.
The text was updated successfully, but these errors were encountered: