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

[bug]: Why does my project report dependency errors when it comes to manual or scaffold installation #4144

Open
2 tasks done
little077 opened this issue Jul 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@little077
Copy link

Describe the bug

I used cli format or manually installed dependencies in the old project of next12, and the project always reported errors. \ nodeModules \ @ radio ui \ react batch \ dist \ index.mjs
Did you mean to import "react/jsx-runtime.js"?

Affected component/components

I used cli format or manually installed dependencies in the old project of next12, and the project always reported errors. \ nodeModules \ @ radio ui \ react batch \ dist \ index.mjs Did you mean to import "react/jsx-runtime.js"?

How to reproduce

1、This is an old project from next12, with a directory format of pages under src
2、Whether installed through CLI or manually, errors will be reported

Codesandbox/StackBlitz link

No response

Logs

node_modules\@radix-ui\react-slot\dist\index.mjs
Did you mean to import "react/jsx-runtime.js"?
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1157:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
    at link (node:internal/modules/esm/module_job:86:36)

System Info

谷歌浏览器

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@little077 little077 added the bug Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant