Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels