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

Rectify the ExperimentalWarning: Watch mode on starting the API app #2227

Open
palisadoes opened this issue Apr 18, 2024 · 8 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@palisadoes
Copy link
Contributor

Describe the bug

When you run the API app, the following message is shown on the CLI that recommends that watch mode is deprecated.

$ npm run dev

> [email protected] dev
> concurrently  "tsx --watch ./src/index.ts" "graphql-codegen --watch"

[0] (node:127742) ExperimentalWarning: Watch mode is an experimental feature and might change at any time
[0] (Use `node --trace-warnings ...` to show where the warning was created)

To Reproduce

  • Run the app

Expected behavior

  • No message because the issue has been has been resolved using coding best practices

Actual behavior

  • See above

Screenshots

image

Additional details

  • N/A

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship:

@palisadoes palisadoes added the bug Something isn't working label Apr 18, 2024
@github-actions github-actions bot added the unapproved Unapproved for Pull Request label Apr 18, 2024
@pranshugupta54
Copy link
Member

Watch mode is still experimental for v20.10.0 node version. We can suppress the warning to just turn off the warning but it won't change anything else.

Do you want to turn the warning off?
It's not recommended to turn off any warnings, we might miss out important updates about watch in future.

@pranshugupta54
Copy link
Member

Alternate way is to use nodemon instead of watch mode of node.

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Apr 30, 2024
@ARYANSHAH1567
Copy link

When i run the API i dont get any such warning, so i guess this issue should be closed[
Screenshot 2024-09-12 193842
]

@palisadoes
Copy link
Contributor Author

@ARYANSHAH1567 Please check to see whether the messages have been suppressed, versus fixed. We have a history of people taking short cuts to create apparent best practice behavior.

@ARYANSHAH1567
Copy link

@ARYANSHAH1567 Please check to see whether the messages have been suppressed, versus fixed. We have a history of people taking short cuts to create apparent best practice behavior.

I looked into the thing and found out that to suppress the warning we have to write the
"dev": "NODE_NO_WARNINGS=1 concurrently "tsx --watch ./src/index.ts" "graphql-codegen --watch"" in package.json
but in the current package.json the command is
"dev": "concurrently "tsx --watch ./src/index.ts" "graphql-codegen --watch""
which does not suppress the warning. So mostly i guess the issue is fixed

@github-actions github-actions bot removed the no-issue-activity No issue activity label Sep 13, 2024
Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Sep 23, 2024
@Cioppolo14 Cioppolo14 removed unapproved Unapproved for Pull Request no-issue-activity No issue activity labels Nov 21, 2024
@Suyash878
Copy link

I would like to work on this.

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

5 participants