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

Server start always generates new .gitignore & .vscode/settings.json #41966

Closed
1 task done
NuroDev opened this issue Oct 27, 2022 · 3 comments
Closed
1 task done

Server start always generates new .gitignore & .vscode/settings.json #41966

NuroDev opened this issue Oct 27, 2022 · 3 comments
Labels
bug Issue was opened via the bug report template.

Comments

@NuroDev
Copy link

NuroDev commented Oct 27, 2022

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000
Binaries:
  Node: 16.16.0
  npm: 8.11.0
  Yarn: 1.22.19
  pnpm: 7.13.4
Relevant packages:
  next: 13.0.0
  eslint-config-next: 13.0.0
  react: 18.2.0
  react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

With the release of v13 every time a command / script is run, whether that be dev, build, etc, Next.js will always generate a new .gitignore & .vscode/settings.json file.

Not breaking in anyway but really not needed. Especially when using a monorepo, like Turborepo & I already have these files top level so Next.js is just generating extra files that are not needed.

Expected Behavior

Either not generate them at all (Though I know there is of course a reason to actually provide these files / config to users) or not generate them if it is (somehow) detected to be running inside a monorepo.

Link to reproduction

https://codesandbox.io/s/next-vscode-settings-generation-bug-c9ouvj?file=/package.json

To Reproduce

Create a new Next.js project & run either next dev or next build & it will generate a new .gitignore if one does not already exist or append .vscode to your existing .gitignore & similarly either create or append to .vscode/settings.json

@NuroDev NuroDev added the bug Issue was opened via the bug report template. label Oct 27, 2022
@milanbgd011
Copy link

+1

Also, it OVERWRITES my .vscode/settings.json corrupting my entire layout and settings for VS CODE.

I suppose that the script should check if needed params are present, if not then "append" to the end of JSON, not replace entire settings.json file..

@balazsorban44
Copy link
Member

Duplicate of #41808

@balazsorban44 balazsorban44 marked this as a duplicate of #41808 Oct 27, 2022
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants