Skip to content

Conversation

@ndcunningham
Copy link
Contributor

Current Behavior

There are two issues when we generate a remix application with ts solutions:

  1. Running the setup-tailwind generator with a reference project which now is commonly with the pattern @nx/acme throws an error based on the schema.
Property 'project' does not match the schema.'@nx/acme' should match the pattern '^[a-zA-Z].*$'.
  1. The tailwind.css inside of root.tsx causes error with Vite.
app/root.tsx (9:7): "default" is not exported by "app/tailwind.css", imported by "app/root.tsx".

Expected Behavior

The remix project should be able to be referenced similarly to how we handle React.
The tailwind import should not throw an error.

Related Issue(s)

Fixes #30343

@ndcunningham ndcunningham self-assigned this Apr 2, 2025
@ndcunningham ndcunningham requested review from a team and Coly010 as code owners April 2, 2025 20:45
@ndcunningham ndcunningham requested a review from isaacplmann April 2, 2025 20:45
@vercel
Copy link

vercel bot commented Apr 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview May 26, 2025 2:02pm

@ndcunningham ndcunningham force-pushed the fix/remix-ts-solution-tailwind branch from 3526072 to be40420 Compare April 2, 2025 20:45
@nx-cloud
Copy link
Contributor

nx-cloud bot commented Apr 2, 2025

View your CI Pipeline Execution ↗ for commit 93b2be7.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 10m 19s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 17s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 2s View ↗
nx documentation ✅ Succeeded 58s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-26 14:07:34 UTC

@ndcunningham ndcunningham merged commit d87f4c2 into master Jun 2, 2025
8 checks passed
@ndcunningham ndcunningham deleted the fix/remix-ts-solution-tailwind branch June 2, 2025 18:52
FrozenPandaz pushed a commit that referenced this pull request Jun 3, 2025
…nts (#30599)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
There are two issues when we generate a remix application with ts
solutions:

1. Running the `setup-tailwind` generator with a reference project which
now is commonly with the pattern `@nx/acme` throws an error based on the
schema.
```
Property 'project' does not match the schema.'@nx/acme' should match the pattern '^[a-zA-Z].*$'.
```
2. The `tailwind.css` inside of `root.tsx` causes error with Vite.
```
app/root.tsx (9:7): "default" is not exported by "app/tailwind.css", imported by "app/root.tsx".
```

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

The remix project should be able to be referenced similarly to how we
handle React.
The tailwind import should not throw an error.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #30343

(cherry picked from commit d87f4c2)
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: @nx/remix:setup-tailwind fails from v20.4.0 onwards

6 participants