We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 错误
The text was updated successfully, but these errors were encountered:
一样,按官方文档安装的项目,一个标点符号都没改,运行npm run build就报这个错,官方自己都不测试好就发出来?
Sorry, something went wrong.
No branches or pull requests
基本信息
现有案例
PS E:\projects\vscode_projects\test\arco_test\hello-arco-pro> npm run build
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 错误
The text was updated successfully, but these errors were encountered: