Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Typescript path aliases cannot be used #23

Open
@danielkcz

Description

@danielkcz

I am using path aliases quite heavily. An example of my tsconfig.json.

{
  "compilerOptions": {
    "baseUrl": "src",
    "paths": {
      "~machinery/graphql": ["generated/machinerygraphql"],
      "~machinery/*": ["*"],
      "~tools/*": ["../../tools/src/*"]
    },
  },
}

Then in the code I can do eg. import { getNow } from '~tools/timing'. Works like a charm with other tooling (after some hassle).

However, running xstate-codegen I am getting Error: Cannot find module '~tools/timing'.

I suppose based on the #21 (comment) it should be solved when transition is done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions