Skip to content

Use type module for the sever #8

Description

@MMojtaba

In server's package.json, use type: "module".
...
after changing some other things to work (such as using file names with .ts/.js extension, and tsconfig changes), found two solutions with down sides:

  • Use "tsx" npm package. But gives error when importing the tsconfig paths on node 24 (works on node 20).
  • Use ts-node esm loader (node --loader ts-node/esm). But can't see error stack

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions