tsc error? Should llama-index-core support module="commonjs" #2010
Replies: 2 comments 4 replies
-
Thanks just, released that we don't need Why are you using |
Beta Was this translation helpful? Give feedback.
-
@marcusschiesser - I have tried to patch it. Here's what I did:
Now my package.json has these
I left the { Note in my app the imports still refer to @llamaindex/core/llms
Which seems correct given that @llamaindex/core is still the correct path in the node modules folder Seeing erros like this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a nodejs project that has been working fine for a couple of years but adding llamaindex-core to it caused the
tsc
(typescript compiler) step to fail.To workaround we had to enable
skipLibCheck
. Without it - we're getting these types of errorsChanging
commjs
tonodenext
resolves some of the issues but still seeingI checked my packagelock.json and we're using an older version of ajv
But I installed the latest version
npm i ajv
to version^8.17.1
- which kicks the can toAny suggestions?
Beta Was this translation helpful? Give feedback.
All reactions