Closed na-trium-144 closed 1 year ago
Thanks. Can you duplicate the error in CodeSandbox? It may create breaking changes for some
https://codesandbox.io/p/sandbox/interesting-ben-m5f9zl?welcome=true This reproduces the error using the latest typescript and the same code given in the readme.
Why are you doing npx tsc
? The compile should be part of your build process set to be typescript. You don't need to run typescript compile manually each time. As you see the build is passing without any errors.
Because Parcel does not check types on build process.
Also, CodeSandbox uses older version of typescript by default.
So I needed to install the latest typescript and run npx tsc
manually to reproduce the error in CodeSandbox.
It is fixed now in version v0.7.1. However, in your example in tsconfig.json
change "moduleResolution": "NodeNext"
to "moduleResolution": "node"
Fixed the following error which occured when I tried to use this library in my typescript project, due to specification change of typescript.