Closed foundrium closed 1 year ago
Hey @foundrium could you share your Typescript and NPM versions?
Sure @lugehorsam they are
Thanks @foundrium. I see that Vite uses a newer bundling method which causes this to happen. The solution looks okay but I was wondering why you removed the existing types
entry in the root-level package.json? I think that may still be needed for projects that are not using the "exports" block.
@lugehorsam yeah thats a good point. I can update
@lugehorsam done.
I have a newly created Vite project setup, and when trying to use
nakama-js
I see the following:I tested this fix locally with
npm link
and the error goes away, but I don't have a clear picture of what it would mean for other setups. Will leave it to the maintainers to decide if its worth merging.