Skip to content

Error booting the nextra app locally #303

@yishangupenn

Description

@yishangupenn

Copied from upstream: dair-ai/Prompt-Engineering-Guide#83
Original author: @aitor
Originally created: 2023-04-04


I'm trying to run the repo locally.

Steps to reproduce

  • Install dependencies
$ pnpm i next react react-dom nextra nextra-theme-docs

Packages: +263
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are copied from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/aitor/Library/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 285, reused 263, downloaded 0, added 263, done

dependencies:
+ @vercel/analytics 0.1.11
+ next 13.0.6
+ nextra 2.3.0
+ nextra-theme-docs 2.3.0
+ react 18.2.0
+ react-dom 18.2.0

devDependencies:
+ @types/node 18.11.10
+ typescript 4.9.3

Done in 16s
  • Booting the app (the error can already be seen in the logs)
$ pnpm dev

> nextra-docs-template@0.0.1 dev /Users/aitor/Dropbox/code/tmp/Prompt-Engineering-Guide
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[nextra] You have Next.js i18n enabled, read here https://nextjs.org/docs/advanced-features/i18n-routing for the docs.
info  - automatically enabled Fast Refresh for 3 custom loaders
event - compiled client and server successfully in 3.3s (170 modules)
wait  - compiling /middleware (client and server)...
event - compiled successfully in 372 ms (72 modules)
wait  - compiling /_error (client and server)...
event - compiled client and server successfully in 321 ms (171 modules)
warn  - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
wait  - compiling /index.en (client and server)...
[nextra] Found "_app.tsx" file, refactor it to "_app.mdx" for better performance.
[nextra] Error compiling /Users/aitor/Dropbox/code/tmp/Prompt-Engineering-Guide/pages/index.en.mdx.
[nextra] Error compiling /Users/aitor/Dropbox/code/tmp/Prompt-Engineering-Guide/pages/index.en.mdx.
error - ./pages/index.en.mdx
TypeError: node.children.at is not a function
info  - automatically enabled Fast Refresh for 3 custom loaders

Screenshot_2023_04_04_20_17_47@2x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions