Closed DmitryMarkov closed 2 weeks ago
Can someone from your team react on this? It's impossible to use your SDK in TS project
Will be great to know solution for that. We have the same issue...
@DmitryMarkov apology for late reply. I see in your tsconfig.json file that you exclude node_modules but typescript is still performing check in node_modules? Could it be that you have imports other than from 'stream-chat'
in your project?
I suspect that the reason for tsc compiling node_modules is an import from stream-chat/src
or similar. When you import directly from library/src, you are bypassing the typical entry points that would usually point to precompiled code (like main or module fields in package.json). This causes TypeScript to treat these as part of your project's source code, triggering a compilation.
@MartinCupela thank you, that's exact the cause - we had one direct typings import. Now it's not throwing this error
Hello, after update to version
8.12.0
, I receive thistsc
error in my project, what can I do here?Running on node
18
, This is mytsconfig.json
: