简体   繁体   English

我在托管 Next.js 中的项目时遇到问题

[英]I have a problem hosting a project made in Next.js

I have Next.js project.我有 Next.js 项目。 When I connect MUI I have problems with verions当我连接 MUI 时,我遇到了版本问题

在此处输入图像描述

My project works in localhost but it is not working in hosting.我的项目在 localhost 中工作,但在托管中不工作。 I tried this one --legacy-peer-deps but it is still not working我尝试了这个 --legacy-peer-deps 但它仍然无法正常工作

Please make sure that you have the node_modules directory present on the hosting server and all the dependencies are installed and available.请确保托管服务器上存在 node_modules 目录,并且所有依赖项均已安装且可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM