zhongtaisong / react-mobx-antd-pc-dmall2.0

基于 react + antd + mobx 构建的拥有前台产品展示页、后台管理系统的pc电商平台
MIT License
10 stars 5 forks source link

less 报错 #1

Open showzyl opened 2 years ago

showzyl commented 2 years ago

demo_mall-pc-client@0.1.0 build react-app-rewired build

Creating an optimized production build... Failed to compile.

./src/index.less TypeError: this[MODULE_TYPE] is not a function


- 原项目clone 下来 build 报错

➜ react-mobx-antd-pc-dmall2.0 git:(master) ✗ yarn build yarn run v1.22.15 $ react-app-rewired build -max_old_space_size=4090 Creating an optimized production build... Failed to compile.

./node_modules/antd/es/config-provider/style/index.less

// https://github.com/ant-design/ant-motion/issues/44 .bezierEasingMixin(); ^ Inline JavaScript is not enabled. Is it set in your options? in /Users/show/Desktop/react-mobx-antd-pc-dmall2.0/node_modules/antd/es/style/color/bezierEasing.less (line 110, column 0)

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

zhongtaisong commented 2 years ago

已修复 ----- 原始邮件 ----- 发件人:梨子o @.> 收件人:"zhong-tsong/react-mobx-antd-pc-dmall2.0" @.> 抄送人:Subscribed @.***> 主题:[zhong-tsong/react-mobx-antd-pc-dmall2.0]_less报错(Issue_#1) 日期:2021年11月29日 17点31分

我的项目里报错

➜ react-mobx-antd-mobile-h5-dmall2.0 git:(master) ✗ npm run build

@.*** build

react-app-rewired build

Creating an optimized production build...

Failed to compile.

./src/index.less

TypeError: this[MODULE_TYPE] is not a function

原项目clone 下来 build 报错

➜ react-mobx-antd-pc-dmall2.0 git:(master) ✗ yarn build

yarn run v1.22.15

$ react-app-rewired build -max_old_space_size=4090

Creating an optimized production build...

Failed to compile.

./node_modules/antd/es/config-provider/style/index.less

// https://github.com/ant-design/ant-motion/issues/44

.bezierEasingMixin();

^

Inline JavaScript is not enabled. Is it set in your options?

  in /Users/show/Desktop/react-mobx-antd-pc-dmall2.0/node_modules/antd/es/style/color/bezierEasing.less (line 110, column 0)

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.