I am having trouble deploying a Frontity project to Vercel. Every time I try to deploy, I get an error message that says “isModuleDeclaration has been deprecated, please migrate to isImportOrExportDeclaration”. After some investigation, I discovered that this error is related to the @babel/types package, which Frontity core depends on.
To try and resolve this issue, I created a fresh Frontity project and added a version.json file with some basic information. Then, I logged in with npx login and deployed the project to Vercel using npx vercel. However, the deployment still failed with the same error message.
I am seeking help from the community to figure out how to resolve this issue and successfully deploy my Frontity project to Vercel. Any advice or suggestions would be greatly appreciated.
Which version of node are you using? You have to make sure you are on 14.x as anything newer wont work. Just an assumption what it could be. I have not seen this error before.
Okey, are you sure the vercel version is also changed. Can you update your build script in package.json to look like this: "build": "node -v && frontity build && node -v",. Then try to deploy and check the logs.
Can you please show me your package.json. I have many projects hosted on vercel and there are no issues with deploying them.