[英]Digital Ocean App build error with NextJS imports/exports
I have a problem with building app process in Digital Ocean, I have an app already deployed and I have implemented a big refactor in the code structure, in my local I can make a build perfectly but when I tried to make build in digital ocean I have received an error with imports and exports我在 Digital Ocean 中构建应用程序流程时遇到问题,我已经部署了一个应用程序,并且我在代码结构中实现了一个大重构,在我的本地我可以完美地构建,但是当我尝试在数字海洋中构建时,我已收到导入和导出错误
I have the same node version in Digital Ocean and local (v16.15.0)我在 Digital Ocean 和本地有相同的节点版本(v16.15.0)
any idea about the problem?关于这个问题的任何想法?
I fixed the bug, it was a problem with git, in my refactor I changed some filenames to use camelCase and the ToolBar file was being cached with its previous name.我修复了这个错误,这是 git 的问题,在我的重构中,我更改了一些文件名以使用 camelCase,并且 ToolBar 文件以其以前的名称被缓存。
I mean我是说
previous name: src/components/Toolbar/ToolBar.tsx以前的名称:src/components/Toolbar/ToolBar.tsx
current name: src/components/ToolBar/ToolBar.tsx当前名称:src/components/ToolBar/ToolBar.tsx
this failed because in the git repository it kept the old name while in my local repository it had the updated name.这失败了,因为在 git 存储库中它保留了旧名称,而在我的本地存储库中它具有更新的名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.