What I tried:
-Local and Render node versions match (v18.7.0)
-Tried changing pubsub.js to pubsub.mjs, package.json to include “type”:“module”, none of which worked
That appears to be an issue that isn’t exclusive to Render. The error messages you’re encountering suggest that the code is utilizing ES6 import syntax (import { something } from ‘somewhere’), but the Node runtime is interpreting the code as CommonJS, which doesn’t support that import syntax. There might be various reasons for this.
Have you made any modifications to your local setup? Have you verified that all your files are being compiled with Babel and that the correct JavaScript content is being served?