Closed cckz closed 3 years ago
I also ran into this problem. I am able to fix it by going into _nodemodules/@ant-design/colors/dis/index.js and changing
var conversion = require('@ctrl/tinycolor/dist/module/conversion');
var formatInput = require('@ctrl/tinycolor/dist/module/format-input');
to this
var conversion = require('@ctrl/tinycolor/dist/conversion');
var formatInput = require('@ctrl/tinycolor/dist/format-input');
or for a more semi-permanent fix until a new release is published is to add the following to package.json until the breaking change is fixed (if you use yarn):
"resolutions": {
"@ant-design/colors": "5.0.0"
}
/cc @zombieJ @07akioni
For a quick summary, this breaking change might be caused by tree shaking code being included in v5.1.0.
Looks like @zombieJ has fixed this in https://github.com/ant-design/ant-design-colors/pull/75. Hopefully, a new patch release with that commit will resolve this for everyone?
Appreciate the work you all do on this 😸 , many thanks!
@zombieJ thanks for the quick fix 🙌 . Anything blocking publishing v5.1.1 to npm? 🙏
@cckz are you using Next.js?
hi, bundle crashes after last update