Digital Ocean App build error with NextJS imports/exports

662 views Asked by At

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 enter image description here

I have the same node version in Digital Ocean and local (v16.15.0)

any idea about the problem?

1

There are 1 answers

0
rrios On

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.

I mean

  • previous name: src/components/Toolbar/ToolBar.tsx

  • current name: 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.