Webpacker在manifest.json中找不到应用程序

问题描述 投票:0回答:1

我的应用程序可以在我的工作站上正常运行,但是我不知道为什么它不能在我的笔记本电脑上运行。这是我进入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/[email protected]: 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.
ruby-on-rails node.js ruby webpack yarn
1个回答
0
投票

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

谢谢大家!

© www.soinside.com 2019 - 2024. All rights reserved.