Skip to content

fix(templates): tailwind file extension is wrong in website template components.json file#9342

Merged
paulpopus merged 2 commits into
payloadcms:mainfrom
marketsystems:patch-1
Apr 2, 2026
Merged

fix(templates): tailwind file extension is wrong in website template components.json file#9342
paulpopus merged 2 commits into
payloadcms:mainfrom
marketsystems:patch-1

Conversation

@marketsystems

@marketsystems marketsystems commented Nov 19, 2024

Copy link
Copy Markdown
Contributor

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

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 sidebar
✔ 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 '*PROJECTPATHREMOVED*\tailwind.config.js'

Can be fixed simply by updating reference in components.json to tailwind.config.mjs
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale due to lack of activity.

To keep the PR open, please indicate that it is still relevant in a comment below.

@github-actions github-actions Bot added the stale label Dec 14, 2024
@github-actions github-actions Bot removed the stale label Jan 21, 2026
@github-actions github-actions Bot added the stale label Feb 20, 2026
@paulpopus paulpopus changed the title fix(components.json): tailwind config extension is wrong fix(templates): tailwind file extension is wrong in website template components.json file Apr 2, 2026
@paulpopus paulpopus enabled auto-merge (squash) April 2, 2026 19:41
@paulpopus paulpopus merged commit 2011f28 into payloadcms:main Apr 2, 2026
23 checks passed
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.82.0

milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
…components.json file (payloadcms#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants