Coder Social home page Coder Social logo

Comments (3)

SeanCassiere avatar SeanCassiere commented on June 15, 2024 1

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:

  1. 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.
  2. You need import the index.css located in the /src directory into your main.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.

ZionLG avatar ZionLG commented on June 15, 2024

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.

guysolan avatar guysolan commented on June 15, 2024

@SeanCassiere many thanks, brilliant response all resolved.

from router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.