Skip to content

Uncaught ReferenceError: Map is not defined at line #617

Closed
@ahiyalala

Description

@ahiyalala

I added the server.bundle.js and this error showed up. Upon looking at the bundle I figured out that it came from this line, it must have come from one of the 3rd party libraries that our other devs included but I can't be certain which one. I also figured out that it has something to do with the polyfills but I don't know how to resolve that as well:

`var scheduleWork = void 0;
var cancelScheduledWork = void 0;

if (!ExecutionEnvironment.canUseDOM) {
  var timeoutIds = new Map();

  scheduleWork = function (callback, options) {
    // keeping return type consistent
    var callbackConfig = {
      scheduledCallback: callback,
      timeoutTime: 0,
      next: null,
      prev: null
    };`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions