Skip to content

WorkOS nextjs impacts nextjs > 16 with no styling #337

@rozzrr

Description

@rozzrr

Describe the bug
Using nextjs 16 or above, it seems when you use the workOS lib all styling is removed, this happened to me when it seemed to be fine then all of a sudden i lost styling completely (all tailwind). Upon testing if i remove the workos lib, styling is back.

To Reproduce
Steps to reproduce the behavior:

  1. Create new nextjs project (latest)(with tailwindcss)
  2. Install and configure workos with nextjs
  3. Add a button ( i used shadznui)
  4. See no styling and plain html

Expected behavior
styling to remain

Screenshots

Image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • authkit-nextjs version [e.g. 2.11.1]
  • Next.js version [e.g. > 16]

Additional context
if i downgrade to next 15.5.6 - this then has styling again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions