13

webpack integrity check failed

 3 years ago
source link: http://blog.ilibrary.me/2019/10/23/webpack-integrity-check-failed
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
欢迎转载,请支持原创,保留原文链接:blog.ilibrary.me

webpack integrity check failed

新搭的rails docker启动rails s的时候抛下面错误:

warning Integrity check: System parameters don't match
error Integrity check failed
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.19.1
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.

解决办法 1

删除 yarn.lock 文件

解决办法 2

修改config/webpacker.yml, 把对应环境的check_yarn_integrity修改为false

development:
  <<: *default
  compile: true

  # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
  check_yarn_integrity: false
  1. Railtie yarn check –integrity fails on development
扫描二维码分享到微信朋友圈Loading...Please waitqrcode.php?url=%2F2019%2F10%2F23%2Fwebpack-integrity-check-failed

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK