I have tried everything in the book it feels, yet I keep getting the same error. Surprisingly, I have not found this exact error anywhere else.
remote: error Couldn't find a package.json file in "/tmp/build_0e5b0c14c98db4a63ddfc87fc6d11490"
Here is the full error on Pastebin
Here is the repository for the (rather simple) blogger project
I even tried running rake assets:precompile
locally and run into absolutely no errors.
I ran RAILS_ENV=production bundle exec rake assets:precompile
, pushed to my repo then tried to deploy, nothing.
I raked through tons of StackOverflow questions and tried googling my error, giving every edit/command I came across a try, but no luck.
EDIT: The following are the contents of my package.json file
{
"name": "blogger",
"private": true,
"dependencies": {
"@rails/actioncable": "^6.0.0",
"@rails/activestorage": "^6.0.0",
"@rails/ujs": "^6.0.0",
"@rails/webpacker": "4.2.2",
"turbolinks": "^5.2.0"
},
"version": "0.1.0",
"devDependencies": {
"webpack-dev-server": "^3.10.1"
}
}