【问题标题】:WSL2 - Magento 2.4-Nginx - Css and Js IssueWSL2 - Magento 2.4-Nginx - Css 和 Js 问题
【发布时间】:2021-08-19 00:01:30
【问题描述】:

我需要有关我的 magento 设置的建议。 我的系统中有 Windows 10。我正在将 wsl2 与 nginx Web 服务器一起使用。我正在尝试安装 magento2.4,但面临加载 css 和 js 的问题。 在新标签中点击 js 时出现以下错误:

Requested path frontend/Magento/luma/en_TT/requirejs/require.js is wrong.
#1 Magento\Framework\App\Bootstrap->run() 在 [pub/static.php:13] 调用

我已经尝试了谷歌的所有解决方案,但没有任何帮助。 请在这里帮助我:(

【问题讨论】:

  • 您找到解决方案了吗?我也有同样的问题。

标签: nginx magento2 wsl-2


【解决方案1】:

你需要运行下面的命令,

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy en_TT

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-20
    • 2021-06-12
    • 2020-12-20
    相关资源
    最近更新 更多