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

Error: Cannot find module 'path' #5

Closed
yazaldefilimone opened this issue Jan 14, 2024 · 2 comments
Closed

Error: Cannot find module 'path' #5

yazaldefilimone opened this issue Jan 14, 2024 · 2 comments

Comments

@yazaldefilimone
Copy link

import { transformerTwoSlash } from 'shikiji-twoslash';

image

 ⨯ Error: Cannot find module 'path'
    at webpackEmptyContext (.../.next/server/app/[slug]/page.js:22:10)
    at requirePath (webpack-internal:///(rsc)/./node_modules/.pnpm/@[email protected]/node_modules/@typescript/vfs/dist/vfs.esm.js:592:132)
@antfu
Copy link
Member

antfu commented Jan 14, 2024

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

@antfu antfu closed this as completed Jan 14, 2024
@Autsider666
Copy link

For anyone running into this issue when using next.js: shikijs/twoslash#191 (comment)

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