unjs / magic-regexp

A compiled-away, type-safe, readable RegExp alternative

Home Page:https://regexp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library blocks Typescript compilation

akowi-sknobloch opened this issue Β· comments

πŸ› The bug

When Trying to build a Typescript Project using magic-regexp tsc hangs indefinitely.
It just hangs and does nothing.

The Problem occurred in different projects (finding the problem the first time did cost me a good amount of time).

πŸ› οΈ To reproduce

https://stackblitz.com/edit/github-dmq6xe?file=package.json

🌈 Expected behaviour

The build Process should go through or at least throw an error.

ℹ️ Additional context

When using ts-node to run the Script it works for whatever reason.

I've added a build script & a start:ts-node script to the example.

Hi @akowi-sknobloch,

can you try adding "skipLibCheck": true in tsconfig and see if this resolve the issue?

edited version: https://stackblitz.com/edit/github-dmq6xe-mup3fm?file=tsconfig.json

Thanks!

Alright seems like "skipLibCheck": true does the trick.
Does now compile without any issues.
Thank you!