How to use typescript package (@portabletext/react) with Preact? #1696
Unanswered
karltaylor
asked this question in
Q&A
Replies: 2 comments
|
Just thought I'd add that this happens on a fresh |
0 replies
Hm, that doesn't seem to be the case. The package certainly does distribute built files. Double check your imports, you shouldn't be importing from
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am trying to use @portabletext/react however whenever I build I get the following error: (Note: I was confused why this was in
node_modulesthen realised the package isn't compiled (shipped as tsx)After doing some searching on the issues, I found preactjs/preact#3180 and updated my
tsconfig.jsonNow when I run
preact watchI get the following errors.I've tried to ignore these errors using
excludebut wondering if there's a simple way to ignore typescript issues from a typescript package that's not shipped as compiled code?All reactions