Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Error: ReferenceError: setTimeout is not defined #281

Description

@frodoe7

The issue occurs when calling zone.broadcastSync();

  • exactly here in my codes
zone.broadcastSync(() => {
      global.module = require('module');
});

and here inside napajs source code (zone-impl.js file)

ZoneImpl.prototype.broadcastSync = function (arg1, arg2) {
        var spec = this.createBroadcastRequest(arg1, arg2);
        var result = this._nativeZone.broadcastSync(spec);
        if (result.code !== 0) {
            throw new Error(result.errorMessage);
        }
    };

I tried to find a solution without opening a new issue - but it looks like this library does not have a big community
so I hope to have a quick help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions