Commit 2011f28
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments