I’m running into problem trying to upgrade to new versions of Parse Server. If I run Parse Server 7.1.0, everything works correctly. However, after upgrading to either 7.2.0 or 7.3.0, I get this error:
require() of ES Module /node_modules/@parse/push-adapter/src/index.js from /index.js not supported. Instead change the require of /node_modules/@parse/push-adapter/src/index.js in /index.js to a dynamic import() which is available in all CommonJS modules.
If I add “type”: “module” to my package.json file, I should be able to successfully import the push-adapter, but that makes it so that “require” no longer works, and that’s used extensively throughout the project. The Git page for the push adapter says this:
// For CommonJS replace the import statemtent above with the following line:
// const ParsePushAdapter = require(‘@parse/push-adapter’).default;
And this is how I have been instantiating the push adapter for several years. Now I’m no longer able to do so. Is there something simply I’m missing here? Is there a way I can get the push adapter imported using “require” when running Parse Server 7.3.0?