Siemka,
ostatnio deployowałem 2 appki zrobione w React i nie było żadnego problemu. Dzisiaj robiliśmy w ramach studiów nowy projekt z wykorzystaniem parcela i analogicznie jak resztę chciałem go zdeployować na Heroku :) Sam deploy zakończył się sukcesem, lecz po przejściu na zdeployowaną stronkę otrzymuję komunikat:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
Link: https://spa-shop-application.herokuapp.com/
mój package.json:
{
"name": "it-spa",
"version": "1.0.0",
"description": "",
"main": "it-spa.js",
"scripts": {
"start:db": "json-server --watch database.json",
"start:app": "parcel ./index.html --open"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@parcel/transformer-sass": "^2.2.1",
"json-server": "^0.15.1",
"parcel": "^2.2.1",
"sass": "^1.49.0",
"bootstrap": "^5.1.3",
"jquery": "^3.6.0"
}
}