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

ExperimentalWarning: The fs.promises API is experimental #105

Closed
kriskate opened this issue Jun 25, 2018 · 4 comments
Closed

ExperimentalWarning: The fs.promises API is experimental #105

kriskate opened this issue Jun 25, 2018 · 4 comments
Assignees
Labels
api: logging Issues related to the googleapis/nodejs-logging-winston API. needs more info This issue needs more information from the customer to proceed. 🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@kriskate
Copy link

kriskate commented Jun 25, 2018

Environment details

  • OS: macOS High Sierra
  • Node.js version: 10.1.0
  • npm version: 5.6.0
  • @google-cloud/logging-winston version: 0.9.0

Steps to reproduce

import { LoggingWinston } from'@google-cloud/logging-winston'

I receive the console error
(node:27103) ExperimentalWarning: The fs.promises API is experimental
which is unfortunate because I'm redirecting the console to the logger and always get this error in Stackdriver as well

@ofrobots
Copy link
Contributor

Hi @kriskate! Thanks for the bug report. Given that you're using ES6 modules can you also provide details on how you are using them? E.g. are you using babel or TypeScript, and if so, what versions.

Secondly can you run with the Node.js --trace-warnings flag so that we can see the stack trace leading to the warning? node --trace-warnings index.js.

@ofrobots ofrobots added needs more info This issue needs more information from the customer to proceed. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 25, 2018
@kriskate
Copy link
Author

Hey, thanks for the prompt response.
requiring the modules has the same result
let LoggingWinston = require('@google-cloud/logging-winston')

(node:33405) ExperimentalWarning: The fs.promises API is experimental
    at Object.get [as promises] (fs.js:84:15)
    at __importStar (~/node_modules/google-auth-library/build/src/auth/googleauth.js:58:96)
    at Object.<anonymous> (~/node_modules/google-auth-library/build/src/auth/googleauth.js:65:10)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)

@ofrobots
Copy link
Contributor

Thanks! I believe this is an issue in the google-auth-library module so I am going to move the issue there.

@ofrobots
Copy link
Contributor

This issue was moved to googleapis/google-auth-library-nodejs#392

@google-cloud-label-sync google-cloud-label-sync bot added the api: logging Issues related to the googleapis/nodejs-logging-winston API. label Jan 31, 2020
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/nodejs-logging-winston API. needs more info This issue needs more information from the customer to proceed. 🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants