Skip to content

regeneratorRuntime is not defined #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
ghost opened this issue Jul 5, 2024 · 6 comments · Fixed by #255 or parse-community/parse-server#9182
Closed
4 tasks done

regeneratorRuntime is not defined #256

ghost opened this issue Jul 5, 2024 · 6 comments · Fixed by #255 or parse-community/parse-server#9182

Comments

@ghost
Copy link

ghost commented Jul 5, 2024

New Issue Checklist

Issue Description

Parse-Server is not starting after update to parse 5.2.0

Steps to reproduce

Update to parse 5.2.0

Actual Outcome

Should work like before

Expected Outcome

Should work like before

Environment

Server

  • Parse Server version: 7.1.0
  • Operating system: Docker image node:20.15.0-bookworm
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local / k8s

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: mongo:7-jammy
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local / k8s

Client

  • Parse JS SDK version: 5.2.0

Logs

*/node_modules/@parse/push-adapter/lib/WEB.js:59
var _ref = _asyncToGenerator( /
#PURE
/regeneratorRuntime.mark(function _callee(data, devices) {
^

ReferenceError: regeneratorRuntime is not defined
at /node_modules/@parse/push-adapter/lib/WEB.js:59:50
at /node_modules/@parse/push-adapter/lib/WEB.js:134:6
at Object. (
/node_modules/@parse/push-adapter/lib/WEB.js:202:2)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object. (
/node_modules/@parse/push-adapter/lib/ParsePushAdapter.js:29:12)

Node.js v20.15.0

Copy link

parse-github-assistant bot commented Jul 5, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@dplewis
Copy link
Member

dplewis commented Jul 5, 2024

@mtrezza Does the push adapter need to be transcompiled? Converting the project to ES6 should work.

@dplewis
Copy link
Member

dplewis commented Jul 6, 2024

@mtrezza I opened a PR for this #255

@mtrezza
Copy link
Member

mtrezza commented Jul 6, 2024

Great, I don't think it requires transcompilation, but we don't have any perf stats unfortunately. It's a small repo so probably not much of a difference?

I'll move this issue.

@mtrezza mtrezza transferred this issue from parse-community/Parse-SDK-JS Jul 6, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0

@mtrezza
Copy link
Member

mtrezza commented Jul 8, 2024

Reopened due to parse-community/parse-server#9182 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants