Based on the error messages, it seems like there are two issues that need to be addressed in order to deploy the Breeze Next frontend:
- Enable experimental syntax plugins in the .babelrc file
- Change linebreak style to 'LF'
To enable the experimental syntax plugins, add the following code to your .babelrc file:
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
]
}
To change the linebreak style to 'LF', you can use a tool like dos2unix. First, install dos2unix on your server:
sudo apt-get install dos2unix
Then, navigate to your Breeze Next frontend directory and run the following command:
find . -type f -exec dos2unix {} \;
This will change the linebreak style of all files in the directory to 'LF'.
After making these changes, try deploying the frontend again and see if the errors are resolved.