Skip to content

ERROR: Dynamic require of "ignore" is not supported #8

Description

@jkoppel

Problem

Attempting to call instance.sync from an endpoint causes this error.

[23:23:11.973] ERROR: Dynamic require of "ignore" is not supported
    err: {
      "type": "TRPCError",
      "message": "Dynamic require of \"ignore\" is not supported: Dynamic require of \"ignore\" is not supported",
      "stack":
          Error: Dynamic require of "ignore" is not supported
              at file:///Users/jkoppel/uptospeed-code/typescript/node_modules/morphcloud/dist/index.mjs:5:9
              at _Instance.sync (file:///Users/jkoppel/uptospeed-code/typescript/node_modules/morphcloud/src/api.ts:499:20)

To repro

I'm not sure what conditions are required in the importing lib to cause this error, but the fix is easy.

Solution

Make it statically rather than dynamically import this library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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