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

Configuration file name issue #473

Open
Gu-Miao opened this issue Nov 18, 2022 · 1 comment
Open

Configuration file name issue #473

Gu-Miao opened this issue Nov 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Gu-Miao
Copy link

Gu-Miao commented Nov 18, 2022

What's happening
I created a new project with CRA5 and I have a configuration file named cracorc.ts, which is in the shown list on Website. But when I run craco start, I got this:

PS E:\Projects\craco-antd-ts-redux> npm start

> start
> craco start

E:\Projects\craco-antd-ts-redux\node_modules\.pnpm\@craco+craco@7.0.0_u3gkuxlvcvnfil7skimcnzk2pq\node_modules\@craco\craco\dist\lib\config.js:113
                throw new Error('craco: Config file not found. check if file exists at root (craco.config.ts, craco.config.js, .cracorc.js, .cracorc.json, .cracorc.yaml, .cracorc)');
                      ^

Error: craco: Config file not found. check if file exists at root (craco.config.ts, craco.config.js, .cracorc.js, .cracorc.json, .cracorc.yaml, 
.cracorc)

The two lists are not same...

CRACO version
7.0.0

@Gu-Miao Gu-Miao added the bug Something isn't working label Nov 18, 2022
@dilanx
Copy link
Owner

dilanx commented Nov 18, 2022

Thanks for catching this. Neither list was correct. The correct file name is .cracorc.ts. I just updated the documentation so that's accurate now, and I'll update that error message soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants