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

在使用standalone模式build产物时,在mac系统很正常,但是在win系统每第二次build时,会报错。 #76252

Closed
xinnian999 opened this issue Feb 20, 2025 · 1 comment
Labels
Output Related to the the output configuration option.

Comments

@xinnian999
Copy link

Link to the code that reproduces this issue

https://github.com/xinnian999/elin-blog/tree/master

To Reproduce

在使用standalone模式build产物时,在mac系统很正常,但是在win系统每第二次build时,会报错。 经排查,是因为build时会先自动删掉node_modules下的next依赖包,然后继续build就会因为找不到next依赖包,导致报错了

Current vs. Expected behavior

预期standalone模式,在Win系统每次也能正常构建。

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 32415
  Available CPU cores: 16
Binaries:
  Node: 20.18.0
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: 9.12.1
Relevant Packages:
  next: 15.1.4 // There is a newer version (15.1.7) available, upgrade recommended!
  eslint-config-next: 15.1.4
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.3
Next.js Config:
  output: N/A
 ⚠ There is a newer version (15.1.7) available, upgrade recommended! 
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
   Read more - https://nextjs.org/docs/messages/opening-an-issue

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

Not sure

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

next dev (local)

Additional context

No response

@samcx samcx added the Output Related to the the output configuration option. label Feb 20, 2025
@samcx
Copy link
Member

samcx commented Feb 20, 2025

@xinnian999 This looks like a duplicate of this issue → #75560.

@samcx samcx closed this as completed Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output Related to the the output configuration option.
Projects
None yet
Development

No branches or pull requests

2 participants