alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.53k stars 2.52k forks source link

runtime 如何支持postcss #1320

Open rudyzou opened 1 year ago

rudyzou commented 1 year ago

runtime 如何支持postcss,用了umi4+antd 5, 启动异常

github-actions[bot] commented 1 year ago

你好 @rudyzou,由于缺乏必要的信息(如 bug 重现步骤、引擎版本信息 等),无法定位问题,请按照 issue bug 模板 补全信息,也可以通过阅读引擎的 issue 说明 了解什么类型的 issue 可以获得更好、更快的支持。

rudyzou commented 1 year ago

目前只能提供这么多信息,帮忙看看,指点一个处理方向

node 版本是 :v16.18.0 错误信息 image

scham { "packages": [{ "package": "moment", "version": "2.24.0", "urls": ["https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"], "library": "moment" }, { "package": "lodash", "library": "_", "urls": ["https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js"] }, { "package": "iconfont-icons", "urls": "//at.alicdn.com/t/font_2369445_ukrtsovd92r.js" }, { "package": "@ant-design/icons", "version": "4.7.0", "urls": ["//g.alicdn.com/code/npm/@ali/ant-design-icons-cdn/4.5.0/index.umd.min.js"], "library": "icons" }, { "package": "antd", "version": "4.23.0", "urls": ["//g.alicdn.com/code/lib/antd/4.23.0/antd.min.js", "//g.alicdn.com/code/lib/antd/4.23.0/antd.min.css"], "library": "antd" }, { "title": "fusion组件库", "package": "@alifd/next", "version": "1.24.18", "urls": ["https://g.alicdn.com/code/lib/alifd__next/1.24.18/next.min.css", "https://g.alicdn.com/code/lib/alifd__next/1.24.18/next-with-locales.min.js"], "library": "Next" }, { "package": "@alilc/antd-lowcode-materials", "version": "1.0.6", "library": "AntdLowcode", "urls": ["https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.0.6/build/lowcode/view.js", "https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.0.6/build/lowcode/view.css"], "editUrls": ["https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.0.6/build/lowcode/view.js", "https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.0.6/build/lowcode/view.css"] }, { "package": "@seada/antd-materials", "version": "1.0.0-rc.15", "library": "SeadaAntdMaterials", "urls": ["https://unpkg.com/@seada/antd-materials@1.0.0-rc.15/build/lowcode/view.js", "https://unpkg.com/@seada/antd-materials@1.0.0-rc.15/build/lowcode/view.css"], "editUrls": ["https://unpkg.com/@seada/antd-materials@1.0.0-rc.15/build/lowcode/view.js", "https://unpkg.com/@seada/antd-materials@1.0.0-rc.15/build/lowcode/view.css"] }, { "package": "@seada/formily-materials", "version": "1.0.0-rc.15", "library": "SeadaFormilyMaterials", "urls": ["https://unpkg.com/@seada/formily-materials@1.0.0-rc.15/build/lowcode/view.js", "https://unpkg.com/@seada/formily-materials@1.0.0-rc.15/build/lowcode/view.css"], "editUrls": ["https://unpkg.com/@seada/formily-materials@1.0.0-rc.15/build/lowcode/view.js", "https://unpkg.com/@seada/formily-materials@1.0.0-rc.15/build/lowcode/view.css"] }], "schema": { "version": "1.0.0", "componentsMap": [{ "devMode": "lowCode", "componentName": "Page" }, { "package": "@alilc/antd-lowcode-materials", "version": "1.0.9", "exportName": "Button", "main": "", "destructuring": true, "componentName": "Button" }, { "package": "@alilc/antd-lowcode-materials", "version": "1.0.9", "exportName": "Icon", "main": "", "destructuring": true, "componentName": "Icon" }], "componentsTree": [{ "componentName": "Page", "id": "node_dockcviv8fo1", "props": { "ref": "outerView", "style": { "height": "100%" } }, "fileName": "/", "dataSource": { "list": [{ "type": "fetch", "isInit": true, "options": { "params": {}, "method": "GET", "isCors": true, "timeout": 5000, "headers": {}, "uri": "mock/info.json" }, "id": "info" }] }, "state": { "text": { "type": "JSExpression", "value": "\"outer\"" }, "isShowDialog": { "type": "JSExpression", "value": "false" } }, "css": "body {\n font-size: 12px;\n}\n\n.button {\n width: 100px;\n color: #ff00ff\n}", "lifeCycles": { "componentDidMount": { "type": "JSFunction", "value": "function componentDidMount() {\n console.log('did mount');\n}" }, "componentWillUnmount": { "type": "JSFunction", "value": "function componentWillUnmount() {\n console.log('will unmount');\n}" } }, "methods": { "testFunc": { "type": "JSFunction", "value": "function testFunc() {\n console.log('test func');\n}" }, "onClick": { "type": "JSFunction", "value": "function onClick() {\n this.setState({\n isShowDialog: true\n });\n}" }, "closeDialog": { "type": "JSFunction", "value": "function closeDialog() {\n this.setState({\n isShowDialog: false\n });\n}" } }, "originCode": "class LowcodeComponent extends Component {\n state = {\n \"text\": \"outer\",\n \"isShowDialog\": false\n }\n componentDidMount() {\n console.log('did mount');\n }\n componentWillUnmount() {\n console.log('will unmount');\n }\n testFunc() {\n console.log('test func');\n }\n onClick() {\n this.setState({\n isShowDialog: true\n })\n }\n closeDialog() {\n this.setState({\n isShowDialog: false\n })\n }\n}", "title": "", "isLocked": false, "condition": true, "conditionGroup": "", "children": [{ "componentName": "Button", "id": "node_oclb7l997id", "props": { "type": "primary", "children": "主按钮", "component_name": "Button", "htmlType": "button", "size": "middle", "shape": "default", "icon": { "type": "JSSlot", "value": [{ "componentName": "Icon", "id": "node_oclb7l997if", "props": { "type": "SmileOutlined", "size": 20, "rotate": 0, "spin": false, "component_name": "Icon" }, "title": "", "isLocked": false, "condition": true, "conditionGroup": "" }] }, "block": false, "danger": false, "ghost": false, "disabled": false }, "title": "", "isLocked": false, "condition": true, "conditionGroup": "" }] }], "i18n": {} } }

liujuping commented 1 year ago

需要提供可复现的 demo,目前信息还是不足以复现。