You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vue create antsy
> default (babel, eslint)
cd antsy
vue add ant-design
> Import on demand
> en_US
This fails for me in postinstall. (Fully import works.) Fixed with as per advanced guides from ant docs (npm i babel-plugin-import -D and modify babel.config.js before adding plugin).
EDIT: And furthermore, still needed to remove LocaleProvider from src/plugins/ though the install was was without errors (errors shown in dev tools console). 😕
Would you kindly update deps so it's not manual.
(Also, there are some prototype pollution warnings on npm audit)
Full error print out below (cleared funding and vulnerabilities notes).
Cheers :)
> vue add ant-design
📦 Installing vue-cli-plugin-ant-design...
+ [email protected]
added 1 package from 1 contributor and audited 25497 packages in 4.97s
(fund and vulnerabilities notes)
✔ Successfully installed plugin: vue-cli-plugin-ant-design
? How do you want to import Ant-Design-Vue? Import on demand
? Choose the locale you want to load en_US
🚀 Invoking generator for vue-cli-plugin-ant-design...
📦 Installing additional dependencies...
>[email protected] postinstall /Users/Nikola/dev/antsy/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}">[email protected] postinstall /Users/Nikola/dev/antsy/node_modules/ant-design-vue
> node scripts/postinstall ||echo"ignore"
added 68 packages from 93 contributors and audited 25642 packages in 5.029s
42 packages are looking for funding
run `npm fund`for details
found 5 vulnerabilities (4 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit`for details
⠋ Running completion hooks...error: 'LocaleProvider' is not defined (no-undef) at src/plugins/ant-design-vue.js:3:15:
1 | import Vue from 'vue'
2 | import { Pagination, Button } from 'ant-design-vue'> 3 | Vue.component(LocaleProvider.name, LocaleProvider)
| ^
4 | Vue.component(Pagination.name, Pagination)
5 | Vue.component(Button.name, Button)
6 |
error: 'LocaleProvider' is not defined (no-undef) at src/plugins/ant-design-vue.js:3:36:
1 | import Vue from 'vue'
2 | import { Pagination, Button } from 'ant-design-vue'> 3 | Vue.component(LocaleProvider.name, LocaleProvider)
| ^
4 | Vue.component(Pagination.name, Pagination)
5 | Vue.component(Button.name, Button)
6 |
2 errors found.
The text was updated successfully, but these errors were encountered:
This fails for me in postinstall. (Fully import works.) Fixed with as per advanced guides from ant docs (
npm i babel-plugin-import -D
and modifybabel.config.js
before adding plugin).EDIT: And furthermore, still needed to remove LocaleProvider from
src/plugins/
though the install was was without errors (errors shown in dev tools console). 😕Would you kindly update deps so it's not manual.
(Also, there are some prototype pollution warnings on npm audit)
Full error print out below (cleared funding and vulnerabilities notes).
Cheers :)
The text was updated successfully, but these errors were encountered: