NPM运行构建:进行Advance UI自定义时的开发错误
我想自定义发布者门户中的UI元素,然后遵循本指南
但是在CMD中运行此指南; npm run构建:dev
错误in ./node_modules/@material-ui/core/core/esm/styles/styles/createpalette.js module build builded失败(来自./node_modules/babel-loader/lib/lib/lib/lib/lib/lib lib /index.js):SyntaxError:。\ downloads \ wso2AM-4.1.0 \ repository \ repository \ deployment \ deployment \ jaggeryapps \ jagpery \ publisher \ node_modules@portital-ui \ youteral-ui \ corecor \ esm \ esm \ esm \ esm \ styles \ styles \ styles \ stylest \ createpalette.js:出乎”(174:319)
我正在使用节点版本16.14.0
和NPM版本8.9.0
。
I wanted to customize the UI elements in the publisher portal and followed this guide
But I get the following error when running this in cmd;npm run build:dev
ERROR in ./node_modules/@material-ui/core/esm/styles/createPalette.js Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: .\Downloads\wso2am-4.1.0\repository\deployment\server\jaggeryapps\publisher\node_modules@material-ui\core\esm\styles\createPalette.js: Unexpected token, expected "," (174:319)
I’m using node version 16.14.0
and npm version 8.9.0
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用节点版本12.x或14.x吗?它可以与这些版本一起使用。
Can you try with the node version 12.x or 14.x? It works with those versions.