BМ
Asked
When I go to the solution folder and enter the command 'npm i && npm run prod' I get an error.
As far as I can see, there is no prod script in the package.json file:
"scripts: {
{ "dev": "vite",
"build": { "vite build" },
This causes an error:
npm ERR! Missing script: "prod"
Please describe step by step what you need to add to package.json and how to run the commands.
If you have a ready file with the necessary PROD script, please provide me.
As far as I can see, there is no prod script in the package.json file:
"scripts: {
{ "dev": "vite",
"build": { "vite build" },
This causes an error:
npm ERR! Missing script: "prod"
Please describe step by step what you need to add to package.json and how to run the commands.
If you have a ready file with the necessary PROD script, please provide me.
- BМAnsweredI can only run npm i && npm run build, but that also ends in an error.
- MSAnsweredHello,
The docs are outdated. I will update them. Please run `npm run build` to build the production app.
The build error is caused due to syntax error in your language file. The path is shown on the error.
Thank you - Login to Reply