-
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
don't run yarn check --integrity
on every rails command
#1135
Comments
You can disable that in Just set |
@kriansa yes, I know this, but this disables it completely. It often saved me already when running |
Why was this closed? Will/can not be fixed? |
@doits Oh yes sorry, confused it with silencing yarn. |
This check also breaks adding webpacker to an existing project if I had a chuckle at the error message suggesting I run
We could update the installation instructions to:
...but that seems hacky. I like the idea of this initializer being smarter. I haven't learned enough about it to suggest how. |
I would love to see this revisited. If anything, I feel like |
How I can resolve this problem, ========================================
|
Run `rm - rf node_modules && yarn`
…On Wed, 25 Sep 2019, 9:46 aliraxa-max, ***@***.***> wrote:
How I can resolve this problem,
=> Booting Puma
=> Rails 6.0.0.rc2 application starting in development
=> Run rails server --help for more startup options
error Couldn't find an integrity file
error Found 1 errors.
========================================
Your Yarn packages are out of date!
Please run yarn install --check-files to update.
To disable this check, please change check_yarn_integrity
to false in your webpacker config file (config/webpacker.yml).
yarn check v1.17.3
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about
this command.
Exiting
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1135?email_source=notifications&email_token=AAKRKF5MN3BRC5JLHO32LD3QLMCLXA5CNFSM4EJC6ZLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QZYQY#issuecomment-534879299>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKRKFZL3D5NR7Q7DB4OUX3QLMCLXANCNFSM4EJC6ZLA>
.
|
This is quite annoying. The check now (since #1774) also runs
Like the OP, I would like to keep the check for |
I fixed this by doing the following steps; I had to create a symlink because the node binary was not found. Upgrading NodeJS to 13.* (probably swapped the binary path here, symlink might have been overkill). Updating Yarn, https://yarnpkg.com/en/package/yarn |
Hmm, I'm seeing it with Rails 6 and Node 13.6... |
Faced this issues with rails 5.2.3. I was able to fix it with the following:
|
#1135 (comment) this worked for me. Thank You @yasirlateef |
config.webpacker.check_yarn_integrity = false |
An environment variable would be the best approach IMO. That way you can have it true by default when running config.webpacker.check_yarn_integrity =
ENV["CHECK_YARN_INTEGRITY"].nil? ||
ENV["CHECK_YARN_INTEGRITY"].to_i > 0 In my case, the docker compose config will set it to |
This issue got pinged from a mention above, but it's worth pointing out that this might be able to be closed: It looks like you can webpacker to help this out (and this can probably be closed). |
yarn check --integrity
is always run. Even if I do arails g migration ...
, which obviously has nothing to do with yarn.I benchmarked it and noticed it adds about 400ms delay to such commands in my case, which is huge imo. It should be changed that it only runs when it makes sense to check for it, like when starting up the web server or the webpack-dev-server.
Since I am not familiar with the rails/railtie internals, I don't know if this is possible or how to implement such checks at the right place.
Is this possible? What do you think?
The text was updated successfully, but these errors were encountered: