ExperimentalWarning when using with Node LTS (16.13.1)
See original GitHub issueDescribe the bug Getting this into the console while running the codegen.
(node:32683) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32683) ExperimentalWarning: buffer.Blob is an experimental feature. This feature could change at any time
To Reproduce Steps to reproduce the behavior:
- Use Node 16.13.1
- Run codegen.yml with the config below.
- For Node 12 warning is not shown.
- My
codegen.ymlconfig file:
schema:
- http://localhost:4000/graphql:
documents: ./src/**/*.graphql
extensions:
codegen:
hooks:
afterAllFileWrite:
- prettier --write
config:
preResolveTypes: true
useTypeImports: true
pureMagicComment: true
generates:
schema.graphql:
plugins:
- schema-ast
./src/packlets/generated/introspection.generated.json:
plugins:
- introspection
config:
minify: true
descriptions: false
schemaDescription: false
./src/packlets/generated/graphql-types.generated.ts:
- typescript
- add:
content: /* eslint-disable */
- add:
content: "// ####################################+################################################"
- add:
content: "// ################# THIS IS GENERATED FILE DO NOT TOUCH!!!!!!!!!!!!####################"
- add:
content: "// ####################################-################################################"
- add:
content: 'import type { UUID, DateTime, Time, JSON, Timestamp, Email, PhoneNumber, URL, Any, GraphQLDate } from "packlets/graphql/scalars"'
src/:
preset: near-operation-file
presetConfig:
extension: .generated.ts
baseTypesPath: packlets/generated/graphql-types.generated.ts
plugins:
- typescript-operations
- typed-document-node
- add:
content: /* eslint-disable */
- add:
content: "// ####################################+################################################"
- add:
content: "// ################# THIS IS GENERATED FILE DO NOT TOUCH!!!!!!!!!!!!####################"
- add:
content: "// ####################################-################################################"
Expected behavior No warnings in the console.
Environment:
- OS: MacOS Monterey 12.0.1
- Versions:
"@graphql-codegen/add": "~3.1.0",
"@graphql-codegen/cli": "~2.3.0",
"@graphql-codegen/introspection": "~2.1.0",
"@graphql-codegen/near-operation-file-preset": "~2.2.2",
"@graphql-codegen/schema-ast": "~2.4.0",
"@graphql-codegen/typed-document-node": "~2.2.1",
"@graphql-codegen/typescript": "~2.4.1",
"@graphql-codegen/typescript-operations": "~2.2.1"
- NodeJS:
16.13.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
node/CHANGELOG_V16.md at main · nodejs/node - GitHub
2022-11-04, Version 16.18.1 'Gallium' (LTS), @BethGriggs. This is a security release. Notable changes. The following CVEs ...
Read more >Node v16.13.1 (LTS)
This release contains a c-ares update to fix a regression introduced in Node.js v16.6.2 resolving CNAME records containing underscores ...
Read more >Download & Update Node.js to the Latest Version! Node v19 ...
Direct download links to update to the latest Node.js versions: Node v19.0.0 / LTS v16.18.0.
Read more >How to avoid the error in angular :- (node:19100 ...
Update your Node.js version. I was getting this warning in Angular v10 projects running on Node v10. I updated Node.js to LTS version ......
Read more >node - Official Image | Docker Hub
Node.js is a JavaScript-based platform for server-side and networking applications. ... hydrogen-alpine , hydrogen-alpine3.17 , lts-alpine , lts-alpine3.17 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I know that it’s harmless. It is just some tools like Rush.js are failing the run in case there is a warning in the console. It sure can be ignored. I thought it’s on your guys’ side and maybe you are unaware or so. Anyway, a bit annoying 😃 Not the end of the world for sure. Hope it will disappear eventually.
Limitations I don’t have any control over 😕