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

Issue with craco-antd: Can't resolve react-dom in /node_modules/antd/lib/_util #7

Open
marcosfede opened this issue Nov 20, 2019 · 1 comment

Comments

@marcosfede
Copy link

Using this plugin in addition to craco-antd throws: Module not found: Can't resolve 'react-dom' in /node_modules/antd/lib/_util'

@EthanDM
Copy link

EthanDM commented Jul 13, 2020

To fix this:

  1. npm install @hot-loader/react-dom

  2. Add webpack config alias 'react-dom': '@hot-loader/react-dom'

See here: https://github.com/gaearon/react-hot-loader#hot-loaderreact-dom

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

2 participants