Inline JavaScript is not enabled. Is it set in your options?
// https://github.com/ant-design/ant-design/issues/7927#
// https://github.com/ant-design/ant-motion/issues/44
config = rewireLess.withLoaderOptions({
javascriptEnabled: true
})(config, env);