For a while now, I've been working on a website using serverless. Everything was going smoothly until this morning when I encountered an issue with pushing updates from my site to the serverless platform. When trying to push, I received the following error:
Error: Failed building website via "npm run build" due to the following error:
"npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `parcel build index.html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/maxime/.npm/_logs/2019-12-04T15_03_19_978Z-debug.log"
The error from the logs is:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: ...
...
I am completely lost with this error. They're saying my build is failing, even though it was working fine yesterday and I haven't made any changes to the serverless part. Has anyone faced a similar problem and could lend me a hand in understanding?
PS: Even using old content, I cannot utilize serverless.
Thank you and apologies for the seemingly silly question;
PS : My package.json
{
"name": "website",
"version": "0.1.0",
"description": "",
"scripts": {
"start": "parcel index.html",
"build": "parcel build index.html"
},
"license": "MIT",
"dependencies": {
"@material-ui/core": "^4.6.0",
"axios": "^0.19.0",
...
},
"devDependencies": {
"@babel/core": "^7.7.2",
"babel-preset-nano-react-app": "^0.1.0",
...
},
"babel": {
"presets": [
"nano-react-app"
],
"plugins": [
...
]
}
}