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

Problem about circular dependency #29

Open
moonrailgun opened this issue Jul 28, 2020 · 1 comment
Open

Problem about circular dependency #29

moonrailgun opened this issue Jul 28, 2020 · 1 comment

Comments

@moonrailgun
Copy link

I clone antd and try to modify some component

Then, I found antd require antd-pro-merge-less
antd-pro-merge-less require @ant-design/dark-theme, and then @ant-design/dark-theme require antd.

Yeah, When i try to run node ./scripts/generate-color-less in antd, its throw

Error: Cannot find module 'antd/dist/dark-theme'

@ant-design/dark-theme not install antd, because its a devDependency.

How can i fix it?
Thanks for your reply

@moonrailgun
Copy link
Author

soft link antd into its self node_module/antd can fix it.

Its any graceful solution?

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