Open moonrailgun opened 3 years ago
I clone antd and try to modify some component
antd
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.
antd-pro-merge-less
@ant-design/dark-theme
Yeah, When i try to run node ./scripts/generate-color-less in antd, its throw
node ./scripts/generate-color-less
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
soft link antd into its self node_module/antd can fix it.
Its any graceful solution?
I clone
antd
and try to modify some componentThen, I found
antd
requireantd-pro-merge-less
antd-pro-merge-less
require@ant-design/dark-theme
, and then@ant-design/dark-theme
requireantd
.Yeah, When i try to run
node ./scripts/generate-color-less
inantd
, its throw@ant-design/dark-theme
not installantd
, because its a devDependency.How can i fix it? Thanks for your reply