Closed darshkpatel closed 1 year ago
I tried this fix and it didn't work for me. I instead deleted the "exports" config and fixed my own type issues within my project it worked.
Edit** I went in and compiled single-spa-react on its own and it seemed to work. Idk
@darshkpatel do you know the solution to this typescript problem?
I’ll investigate
On Wed, 28 Jun 2023 at 5:12 AM, Joel Denning @.***> wrote:
@darshkpatel https://github.com/darshkpatel do you know the solution to this typescript problem?
168 https://github.com/single-spa/single-spa-react/pull/168
— Reply to this email directly, view it on GitHub https://github.com/single-spa/single-spa-react/pull/168#issuecomment-1610366288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACV4TLSH5EMA2APT642Q7ZTXNNVXDANCNFSM6AAAAAAXYW3A7I . You are receiving this because you were mentioned.Message ID: @.***>
compiling a react application using a rollup based plugin (@vitejs/plugin-react in my case) will throw an error if package.json isn't exported.
The only package failing in my usecase is
single-spa-react
I did test this change by manually adding this line to the package in the node_modules folder and compiling again.Example of such a export: https://github.com/facebook/react/blob/16d053d592673dd5565d85109f259371b23f87e8/packages/react-refresh/package.json#L24 Related issue on another repo: https://github.com/uuidjs/uuid/issues/444
Fixes: #140