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 [TurbopackInternalError]: Next.js package not found #74226

Open
Nizodevlo opened this issue Dec 22, 2024 · 5 comments
Open

[Error [TurbopackInternalError]: Next.js package not found #74226

Nizodevlo opened this issue Dec 22, 2024 · 5 comments
Labels
bug Issue was opened via the bug report template. Turbopack Related to Turbopack with Next.js.

Comments

@Nizodevlo
Copy link

Link to the code that reproduces this issue

https://github.com/Nizodevlo/Redux.git

To Reproduce

  1. first initialized the project with: npx create-next-app@latest ./ --use-pnpm
  2. then create this folder structure:
    {B3B5364A-27C5-4A46-A42E-58E0004F95A0}
  3. Add the Store provider to the root layout:
    {3DE31F11-E787-4E73-9D8D-7D9E532B3537}
    4.execute: pnpm dev
  4. here's waht happend:
    {AB074F7A-97A3-4B66-948A-19D9917C3381}

here's the report log:
{8AFA4125-7A33-4BF1-9C05-5AB127F32166}

Current vs. Expected behavior

I tryed to use the store provider in root layout:
{D508A0E8-8B58-4725-BE99-02D32E9F2670}

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home Single Language
  Available memory (MB): 16076
  Available CPU cores: 8
Binaries:
  Node: 22.12.0
  npm: 11.0.0
  Yarn: N/A
  pnpm: 9.15.1
Relevant Packages:
  next: 15.1.1-canary.16 // Latest available version is detected (15.1.1-canary.16).
  eslint-config-next: 15.1.2
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I've used the canary version 15.1.1-canary.16 yet still the same issue

@Nizodevlo Nizodevlo added the bug Issue was opened via the bug report template. label Dec 22, 2024
@github-actions github-actions bot added the Turbopack Related to Turbopack with Next.js. label Dec 22, 2024
@Ivor808
Copy link

Ivor808 commented Dec 23, 2024

I have also been running into this issue on fresh next builds even without redux.

@Ivor808
Copy link

Ivor808 commented Dec 23, 2024

@Nizodevlo what error do you get if you build without the --turbopack flag in the pnpm dev cmd?

@Nizodevlo
Copy link
Author

@Ivor808 after I removed the flag, it showed the ui for a second but it disappeared.
Here's the error :
{3326BEDA-B20C-4E8F-9996-BD04CEBEF909}
It said that I'm using outdated canary version but I'v used this cmd in docs: npm i next@canary
Now I will try it again if its not working. I'm gonna use this cmd: npm i next@latest

After I use "npm i next@latest" it showed different error:
{025895AD-01C3-4D37-99E2-3551B9DB52F6}
here's the terminal:
{296A4082-BF12-4322-8115-43518C3ABFDC}

I will try again fresh using npm not pnpm to see if there is a difference

@Nizodevlo
Copy link
Author

Update:

-I've used just redo everything here's the steps:
1.delete node_modules folder: rm -rf node_modules package-lock.json
2.clear the cache: npm clear cache --force
3.reinstall the dependencies with: npm install

Now it workings:
{CE0274F9-893D-45BE-B01F-2740A601A380}
{5B4B2BD2-FB01-4CDC-9077-ADCB9DCC65D3}

I think the problem is coming from pnpm. Just my opinion cuz I'm 1year to development

@Nizodevlo
Copy link
Author

@Ivor808 try using just npm and see what happend cuz it fixed my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

No branches or pull requests

2 participants