【问题标题】:Webpacker can't find application in manifest.jsonWebpacker 在 manifest.json 中找不到应用程序
【发布时间】: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


【解决方案1】:

好的,所以我修复了这个错误。 我更新了我的 node 并运行 $yarn 命令。 错误消失了!

谢谢大家!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-27
    • 2020-02-04
    • 1970-01-01
    • 2023-04-07
    • 2021-02-06
    • 2020-06-26
    • 2019-06-13
    • 1970-01-01
    相关资源
    最近更新 更多