Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs Theme #4300

Open
NotDemonix opened this issue Mar 1, 2025 · 5 comments
Open

Docs Theme #4300

NotDemonix opened this issue Mar 1, 2025 · 5 comments

Comments

@NotDemonix
Copy link

Hi, how can I make the docs theme work nicely in nextra 4 with app router if I'm running a regular app with nextra? I get errors like this.

GET /docs 500 in 54ms
 ⨯ ./node_modules/nextra/dist/server/page-map/placeholder.js?lang=
Attempted import error: 'metadata' is not exported from 'private-next-root-dir/src/app/checkoutcomplete/page.tsx' (imported as 'src_app_checkoutcomplete_page').       

Import trace for requested module:
./node_modules/nextra/dist/server/page-map/placeholder.js?lang=
./node_modules/nextra/dist/server/page-map/get.js
./node_modules/nextra/dist/server/page-map/index.js
./src/app/docs/layout.tsx
@EzXabi
Copy link

EzXabi commented Mar 1, 2025

I'm having the same issue!

@dimaMachina
Copy link
Collaborator

update your nextra/nextra-theme-docs minimum to v4.2.3 https://github.com/shuding/nextra/releases/tag/nextra%404.2.3

@NotDemonix
Copy link
Author

update your nextra/nextra-theme-docs minimum to v4.2.3 https://github.com/shuding/nextra/releases/tag/nextra%404.2.3

Thanks, any suggestions about

Syntax error: C:\Users\Administrator\Desktop\Discord Stuff\tickety-stable-nextjs\node_modules\nextra-theme-docs\dist\style.css `@layer base` is used but no matching `@tailwind base` directive is present.

  120 |   }
  121 | }
> 122 | @layer base {
      | ^
  123 |   *, ::after, ::before, ::backdrop, ::file-selector-button {
  124 |     box-sizing: border-box;

@dimaMachina
Copy link
Collaborator

@NotDemonix
Copy link
Author

https://x.com/dimaMachina_/status/1878829713625628966

Thanks. Any method to revert tailwind styling for nextra? it breaks the styling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants