We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am importing @docsearch/css in a layout.tsx file in the /app directory. The CSS is not being loaded.
@docsearch/css
layout.tsx
/app
npm i @docsearch/react
import '@docsearch/css'
import { DocSearch } from '@docsearch/react'
page.tsx
I would expect it to work the same as in _app.tsx in the /pages directory.
_app.tsx
/pages
The text was updated successfully, but these errors were encountered:
My temporary fix is to duplicate the style.css file from @docsearch/css and import '#/styles/style.css' in layout.tsx.
style.css
import '#/styles/style.css'
Sorry, something went wrong.
Hi @trevorpfiz are you still seeing this issue by chance?
This may help. npm install @docsearch/js @docsearch/css
Closing -- a fresh install of Next.js and Docsearch shows this working as expected. Feel free to open a new issue if this persists.
No branches or pull requests
Description
I am importing
@docsearch/css
in alayout.tsx
file in the/app
directory. The CSS is not being loaded.Steps to reproduce
npm i @docsearch/react
import '@docsearch/css'
inlayout.tsx
import { DocSearch } from '@docsearch/react'
inpage.tsx
Expected behavior
I would expect it to work the same as in
_app.tsx
in the/pages
directory.Environment
The text was updated successfully, but these errors were encountered: