Hi there 👋 I'm chensshuai2144 (期贤) .
- 📍 杭州
- 🍉 Working on ant digital
- 📚 Want to acquire all the knowledge
- 👨👩👦 Married and one child
- 🦸♂️ Become a great programmer
ant.design.pro 的 less 进行合并
Hi there 👋 I'm chensshuai2144 (期贤) .
ERROR Failed to compile with 1 errors 16:05:35
error in ./node_modules/antd-pro-merge-less/index.js
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
#!/usr/bin/env node
| /**
| * 这个方法用来处理 css-modlue
@ dll umi
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ant-design 项目,本地运行 node ./scripts/generateColorLess.js
失败
antd-pro-merge-less
是 antd 4.19 样式做了什么调整吗,4.18的版本可以正常 build,4.19以上版本build提示找不到css变量。
@chj-damon
INFO 💄 build theme
🔩 less render start!
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFileSync (fs.js:1517:5)
at loop (G:\SVN2\trunk\HY.WebUI\node_modules\antd-pro-merge-less\index.js:287:12)
at build (G:\SVN2\trunk\HY.WebUI\node_modules\antd-pro-merge-less\index.js:299:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
antd 版本: 4.0.0-rc.3
antd-pro-merge-less版本:2.0.28
错误原因:部分less变量未找到
报错信息:{ [Error: variable @btn-padding-sm is undefined]
message: 'variable @btn-padding-sm is undefined',
stack: undefined,
type: 'Name',
filename:
'D:\rainbow\demo-master\node_modules\antd-pro-merge-less\.temp\antd.less',
index: 204508,
line: 8483,
column: 22,
callLine: NaN,
callExtract: undefined,
extract:
[ ' .button-size(',
' @btn-height-sm; @btn-padding-sm; @font-size-base; @border-radius-base',
' );' ] }
"Cannot find module '@/utils/utils.less'
这个文件明明是存在的
之前都没问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.