Open easychen opened 3 hours ago
package.json:
{
"name": "doc",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"next": "^14.2.15",
"nextra": "^3.0.12",
"nextra-theme-docs": "^3.0.12",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
}
Without providing runnable reproduction, I am unable to help
I've zipped up the code( without node_modules ), can you check if it reproduces?
please create GitHub repo, I will not download untrusted .zip files
Adding a pages/_app.jsx
file may temporarily resolve this issue.
function App({ Component, pageProps }) {
return <Component {...pageProps} />
}
export default App
Describe the bug
After following the guide to install, running
npm run dev
results in the following:To Reproduce Steps to reproduce the behavior:
npm init -y
npm i next react react-dom nextra nextra-theme-docs
next.config.mjs
theme.config.jsx
pages/index.mdx
npm run dev
Expected behavior
The initial page should load with styles.
Screenshots
Desktop :
Additional Notes Running npm run build && npm run start works as expected.