NPM运行构建:进行Advance UI自定义时的开发错误

发布于 2025-01-28 10:29:11 字数 868 浏览 2 评论 0原文

我想自定义发布者门户中的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

匿名。 2025-02-04 10:29:11

您可以尝试使用节点版本12.x或14.x吗?它可以与这些版本一起使用。

Can you try with the node version 12.x or 14.x? It works with those versions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文