Hi guys,
Just a little note for those of you who run parse server on Heroku.
It seems like a recent major release of node (from version 16 to 17) might be causing some issue (we explained a workaround we found at the bottom).
Actually, we suddenly started to have the following issue on Heroku that we’d never experienced before. There was no error message when building, as it showed message at the end,
remote:
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote: Procfile declares types → (none)
remote: Default types for buildpack → web
remote:
remote: -----> Compressing…
etc…
However, it crashed when it tried to run it.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./public/extractFiles’ is not defined by “exports” in /app/node_modules/extract-files/package.json
==================================================
What worked for us for now is to set the “engines” versions for node and npm on package.json to be:
“engines”: {
“node”: “<17”,
“npm”: “8.0.0”
},
==================================================