Comments (3)
I played around with the reproduction above and found that it wasn't properly set up to work with tailwindcss.
When using any of the react examples from Tanstack Router, they are set up to use the Tailwindcss Play CDN for styling. This is meant for quick iteration with tailwindcss without having to perform the full set-up.
As such, the migration steps for moving one of the examples to work with your local tailwindcss setup would require the following:
- You need to remove the tailwindcss script import in the
index.html
file, so there isn't any mismatch been the tailwind npm package and the script being loaded from the cdn on page load. - You need import the
index.css
located in the/src
directory into yourmain.tsx
file, so your local tailwindcss styles will be applied in to the final generated file.
See the working example here: https://stackblitz.com/edit/tanstack-router-a8ywr5?file=src%2Fmain.tsx
Please confirm and close the issue.
from router.
I looked around that stackblitz, really weird.
I have a private repo where I use shadcn and vite tanstack router, and the animations work there for me (tested with the sheet), tried searching for reasons why it wouldnt work there but work on my repo, couldnt find anything.
from router.
@SeanCassiere many thanks, brilliant response all resolved.
from router.
Related Issues (20)
- Generated router with TS errors using new `isolatedDeclarations` HOT 2
- Can't git clone repo on Windows due to `?split.tsx` files HOT 3
- useRouteContext initially undefined HOT 3
- DOCS: Impossible to find something about defaultPendingComponent in docs HOT 4
- Context missing on route preload HOT 2
- Route component not showing
- Route.to becomes `undefined` after a HMR save HOT 3
- defaultPendingMinMs blocks the page on load HOT 2
- Throwing an error in a `beforeLoad` handler does not render error component
- Undefined context after redirect with wrapInSuspense at root route (introduced in 1.33.6) HOT 6
- Module '"@tanstack/react-router"' has no exported member 'PickAsRequired'. HOT 1
- aria-current=page attribute is returned for all links HOT 2
- The test does not work when rendering the router HOT 6
- File base subroutes regression HOT 4
- Context is undefined when search validation fails HOT 1
- Incorrect not found component being rendered HOT 3
- Overlapping Keys Cause Type Issues Using Experimental Intersection
- `Route.fullPath` is typed incorrectly when using path params HOT 8
- Undefined context after redirect HOT 6
- `beforeLoad` does not run when resetting from `errorComponent`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from router.