Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set properties of undefined (setting 'exports') #100

Open
theIYD opened this issue Sep 4, 2023 · 0 comments
Open

Cannot set properties of undefined (setting 'exports') #100

theIYD opened this issue Sep 4, 2023 · 0 comments

Comments

@theIYD
Copy link

theIYD commented Sep 4, 2023

I have a monorepo setup (using TurboRepo) with my CRA app with Craco, inside apps/* folder and a design system inside packages/* folder. The paths to the design system are setup in tsconfig.json.

Previously, I was using the the old plugin craco-alias. I have replaced it with react-app-alias-ex.

However it sometimes does not work with hot reloading i.e when a change is made inside packages/*, I see Cannot set properties of undefined (setting 'exports') as an error on the browser while the craco process shows Files successfully emitted, waiting for typecheck results.... I have to shutdown the server and restart.

Any solutions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant