I am developing a next.js 13 app with app
experimental feature enabled.
You can checkout the project here.
On my one device, yarn dev is running properly, but on device, I am having a problem starting the development server, as shown below:
我正在开发一个应用程序实验功能启用的next.js 13应用程序。你可以在这里签下这个项目。在我的一台设备上,Year dev运行正常,但在设备上,启动开发服务器时出现问题,如下所示:
$ yarn dev
yarn run v1.22.19
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn - You have enabled experimental feature (appDir) in next.config.js.
info - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - Using wasm build of next-swc
Done in 4.46s.
I am not able to figure it out, checked on interne but haven't found anything relevant.
I am using VSCode, Windows, next.js@13
, [email protected]
and [email protected]
for development.
我想不通,我查过实习生,但没有找到任何相关的东西。我正在使用VSCode、Windows、next.js@13、[电子邮件受保护]和[电子邮件受保护]进行开发。
更多回答
i had the same problem i was on node@18.15.0 i installed [email protected] and everything works fine again
我在NODE@18.15.0上遇到了同样的问题。我安装了[受保护的电子邮件],一切都恢复正常
优秀答案推荐
Uninstall node js and reinstall node js latest version. then restart your pc.
卸载节点js并重新安装最新版本的节点js。然后重新启动您的电脑。
Try to ran cmd or powershell as administrator, cd into the project directory before running npm run dev
.
在运行npm run dev之前,尝试以管理员身份运行cmd或PowerShell,并将cd命令输入到项目目录中。
had the same issue with npm run dev
i was getting this issue:
Solved by upgrading my node version to 18.0.0 (was 16.14)
在NPM运行开发时遇到了同样的问题:通过将我的节点版本升级到18.0.0(是16.14)解决了这个问题
Yes, I have also faced the same issue, you only need to upgrade your node version.
是的,我也遇到过同样的问题,你只需要升级你的节点版本。
I also had the same issue. but the fix is straightforward. just uninstall the node. and go to https://nodejs.org/en/download and download the "Recommended For Most Users" version.
我也有同样的问题。但解决办法很简单。只需卸载节点即可。并访问https://nodejs.org/en/download下载“推荐给大多数用户”的版本。
If it's not working restart your PC. and your problem will be solved
如果它不工作,请重新启动您的PC。你的问题就解决了
更多回答
我是一名优秀的程序员,十分优秀!