【发布时间】:2020-04-26 03:04:44
【问题描述】:
我的应用程序在我的工作站上运行良好,但我不知道为什么它不能在我的笔记本电脑上运行。这是我去 localhost:3000
时得到的Webpacker::Manifest::MissingEntryError at /
Webpacker can't find application in /home/max/app_project/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
我运行了 $yarn 命令,得到以下结果;
yarn install v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
error @rails/webpacker@4.2.2: The engine "node" is incompatible with this module. Expected version ">=8.16.0". Got "8.10.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
【问题讨论】:
-
您可以尝试更新 Node 本身。另外我觉得这不属于 SO 而是属于服务器故障(我会投票支持移动这个问题)。
-
投票this proposal 以缓解 [yarn] 和 [yarnpkg] 周围的标签混淆。
标签: ruby-on-rails node.js ruby webpack yarnpkg