Skip to content

Commit 2011f28

Browse files
fix(templates): tailwind file extension is wrong in website template components.json file (#9342)
**symptoms:** when using website template default, if you then want to add more shadcn components on frontend it errors out because tailwind config extension is wrong in components.json: **example:** >npx shadcn@latest add alert ✔ Checking registry. ⠋ Updating tailwind.config.js Something went wrong. Please check the error below for more details. If the problem persists, please open an issue on GitHub. ENOENT: no such file or directory, open '*MYPROJECTPATHREMOVED*\tailwind.config.js' **FIX:** Can be fixed simply by updating reference in components.json to tailwind.config.mjs <!-- Thank you for the PR! Please go through the checklist below and make sure you've completed all the steps. Please review the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository if you haven't already. The following items will ensure that your PR is handled as smoothly as possible: - PR Title must follow conventional commits format. For example, `feat: my new feature`, `fix(plugin-seo): my fix`. - Minimal description explained as if explained to someone not immediately familiar with the code. - Provide before/after screenshots or code diffs if applicable. - Link any related issues/discussions from GitHub or Discord. - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Fixes # --> Co-authored-by: Paul Popus <paul@payloadcms.com>
1 parent 05447b7 commit 2011f28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/website/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rsc": true,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.js",
7+
"config": "tailwind.config.mjs",
88
"css": "src/app/(frontend)/globals.css",
99
"baseColor": "slate",
1010
"cssVariables": true,

0 commit comments

Comments
 (0)