https://github.com/pixtron/xstate-typegen-node-esm-repro
https://github.com/pixtron/xstate-typegen-node-esm-repro
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pixtron/xstate-typegen-node-esm-repro
- Owner: pixtron
- License: apache-2.0
- Created: 2023-03-22T16:17:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T16:46:48.000Z (about 3 years ago)
- Last Synced: 2025-05-25T11:48:06.412Z (about 1 year ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prerequisits
- [XState VSCode Extension](https://marketplace.visualstudio.com/items?itemName=statelyai.stately-vscode&ssr=false) installed
# Steps to reproduce:
1. Clone the repo and `npm install`
2. `npm run build:watch` -> Typescript error see below
3. fix the error by appending `.js` to the `/main.typegen` in `src.main.ts:5.40`
4. Save the file
# Expected Outcome
File is saved
# Actual Outcome
`.js` is removed
# Typescript error
```bash
src/main.ts:5:25 - error TS2307: Cannot find module './main.typegen' or its corresponding type declarations.
5 tsTypes: {} as import("./main.typegen").Typegen0,
```