Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行 npm run build 失败 #362

Open
1 task
JovenGeek opened this issue Jan 24, 2024 · 1 comment
Open
1 task

执行 npm run build 失败 #362

JovenGeek opened this issue Jan 24, 2024 · 1 comment

Comments

@JovenGeek
Copy link

基本信息

现有案例

PS E:\projects\vscode_projects\test\arco_test\hello-arco-pro> npm run build

arco-design-pro-vue@1.0.0 build
vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts

src/components/menu/index.vue:102:19 - error TS2339: Property 'a-sub-menu' does not exist on type 'JSX.IntrinsicElements'.

102 <a-sub-menu
~~~~~~~~~~~
103 key={element?.name}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
107 }}
~~~~~~~~~~~~~~~~~~~~~~
108 >
~~~~~~~~~~~~~~~~~~~

src/components/menu/index.vue:110:19 - error TS2339: Property 'a-sub-menu' does not exist on type 'JSX.IntrinsicElements'.

110
~~~~~~~~~~~~~

src/components/menu/index.vue:112:19 - error TS2339: Property 'a-menu-item' does not exist on type 'JSX.IntrinsicElements'.

112 <a-menu-item
~~~~~~~~~~~~
113 key={element?.name}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
115 onClick={() => goto(element)}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116 >
~~~~~~~~~~~~~~~~~~~

src/components/menu/index.vue:118:19 - error TS2339: Property 'a-menu-item' does not exist on type 'JSX.IntrinsicElements'.

118
~~~~~~~~~~~~~~

src/components/menu/index.vue:129:9 - error TS2339: Property 'a-menu' does not exist on type 'JSX.IntrinsicElements'.

129 <a-menu
~~~~~~~
130 mode={topMenu.value ? 'horizontal' : 'vertical'}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
139 onCollapse={setCollapse}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 >
~~~~~~~~~

......

Found 10 errors in 3 files.

Errors Files
6 src/components/menu/index.vue:102
2 src/views/profile/basic/components/profile-item.vue:59
2 src/views/visualization/data-analysis/components/chain-item.vue:43

预期解决问题

在执行 npm run build 时出现 jsx 错误

@yhysir
Copy link

yhysir commented Mar 14, 2024

一样,按官方文档安装的项目,一个标点符号都没改,运行npm run build就报这个错,官方自己都不测试好就发出来?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants