Closed unzico closed 5 years ago
Whoops, sorry about that! You're totally right, babel-import-plugin
should be a dependency. I've added that and released 1.5.0
.
Sorry again, I should have really tested on a fresh create-react-app
project, but my app already had babel-plugin-import
in the package.json
so I didn't notice this issue. Please let me know if you run into any other problems!
Works perfectly now. Thank you for your quick response :+1:
Whoops, sorry about that! You're totally right,
babel-import-plugin
should be a dependency. I've added that and released1.5.0
.Sorry again, I should have really tested on a fresh
create-react-app
project, but my app already hadbabel-plugin-import
in thepackage.json
so I didn't notice this issue. Please let me know if you run into any other problems!
can you please explain with exact steps how to fix this issue.
Hi,
first of all, thanks for your work. Using CRA 2.x with Antd is super easy now. However, trying to start an app using the approach described in the installation guide will throw an immediate error, stating:
This is easily resolved by installing
babel-plugin-import
manually. Looking at the readme, I assume that's not the indended way of installingcraco-antd
, as it states:I would therefore recommend shipping
craco-antd
withbabel-plugin-import
(no clue, how to do that. Simply install the plugin as a dev dependency (?)) or advising users to install the plugin manually.Reproduction: https://github.com/unzico/craco-antd-plugin-missing
git clone https://github.com/unzico/craco-antd-plugin-missing
cd craco-antd-plugin-missing
yarn
yarn start
Thank you, have a nice weekend.