Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Initial build checks for types before creating them #10

Closed
kahboom opened this issue Sep 3, 2022 · 1 comment · Fixed by #6
Closed

Initial build checks for types before creating them #10

kahboom opened this issue Sep 3, 2022 · 1 comment · Fixed by #6

Comments

@kahboom
Copy link

kahboom commented Sep 3, 2022

Getting the following error on yarn start:

Error saving the types index [Error: ENOENT: no such file or directory, open 'dist/@mf-typescript/__types_index.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'dist/@mf-typescript/__types_index.json'
}

To reproduce:

  1. rm -rf dist
  2. yarn start
  3. The directory and file are created on that same build, but only after the check, so it fails

If I kill the process and restart it goes away. Of course, I could just check in this file, but I'd rather not have to check in the dist dir.

If it's relevant, I'm using dynamic imports.

@pavandv
Copy link
Member

pavandv commented Sep 3, 2022

This issue is been addressed in the #6 PR along with other issues which causes when used with dynamic imports.

@pavandv pavandv linked a pull request Sep 3, 2022 that will close this issue
@kahboom kahboom closed this as completed Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants