You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, in development, webpacker runs a yarn integrity check to ensure that all local JavaScript packages are up-to-date. This is similar to what bundler does currently in Rails, but for JavaScript packages. If your system is out of date, then Rails will not initialize. You will be asked to upgrade your local JavaScript packages by running `yarn install`.
280
280
281
-
To turn off this option, you will need to override the default by adding a new config option to your Rails development environment configuration file (`config/environment/development.rb`):
281
+
To turn off this option, you will need to change the default setting in `config/webpacker.yml`:
282
282
283
-
```
284
-
config.webpacker.check_yarn_integrity = false
283
+
```yaml
284
+
# config/webpacker.yml
285
+
development:
286
+
...
287
+
# Verifies that versions and hashed value of the package contents in the project's package.json
288
+
check_yarn_integrity: false
285
289
```
286
290
287
-
You may also turn on this feature by adding the config option to any Rails environment configuration file:
291
+
You may also turn on this feature by adding the config option for any Rails environment in `config/webpacker.yml`:
0 commit comments