-
-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
Context
Hi!! Thank you for building and maintaining such a great package. I am encountering some issues when using codehike
+ next-mdx-remote
+ Nextjs with the standalone option.
During development, the code goes smoothly. But after building it with the Next.js standalone option, the app can't find some file that codehike relied on and throw Internal Error.
error running remarkCodeHike [Error: ENOENT: no such file or directory, open '/app/node_modules/.pnpm/[email protected]/node_modules/shiki/languages/abap.tmLanguage.json'] {
code-hike-test-2 | errno: -2,
code-hike-test-2 | code: 'ENOENT',
code-hike-test-2 | syscall: 'open',
code-hike-test-2 | path: '/app/node_modules/.pnpm/[email protected]/node_modules/shiki/languages/abap.tmLanguage.json'
code-hike-test-2 | }
The way to reproduce
- Please clone this repo https://github.com/EiffelFly/code-hike-remote-docker
- install everything and use the script
npm run build
- Activate the standalone server with
node ./.next/standalone/server.js
- goto http://localhost:3000
I have set up a docker image if this could help.
npm run docker:app:develop
- goto http://localhost:3000
thecuvii
Metadata
Metadata
Assignees
Labels
No labels