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

tslib triggers a process experimental warning in node.js 10.1.0 #20683

Closed
mdouglass opened this issue May 11, 2018 · 2 comments
Closed

tslib triggers a process experimental warning in node.js 10.1.0 #20683

mdouglass opened this issue May 11, 2018 · 2 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.

Comments

@mdouglass
Copy link
Contributor

mdouglass commented May 11, 2018

  • Version: node v10.1.0
  • Platform: any
  • Subsystem: fs

When tslib imports the fs module it loops over every exported variable which now triggers a process-wide warning which is logged to the console.

(node:78361) ExperimentalWarning: The fs.promises API is experimental

The stack when this happens is:

ExperimentalWarning: The fs.promises API is experimental
    at Object.get [as promises] (fs.js:84:15)
    at Object.__importStar (/Users/mdouglass/kixeye/km/server/km-sim/node_modules/tslib/tslib.js:213:100)
    at Object.<anonymous> (/Users/mdouglass/kixeye/km/server/km-sim/node_modules/@kixeye/km-shared/lib/protocols/index.ts:1:1)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/mdouglass/kixeye/km/server/km-sim/node_modules/ts-node/src/index.ts:395:14)
    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)

See microsoft/tslib#50

@ChALkeR ChALkeR added the duplicate Issues and PRs that are duplicates of other issues or PRs. label May 11, 2018
@mscdex
Copy link
Contributor

mscdex commented May 11, 2018

This is a duplicate of this comment, which is already addressed by #20632.

@mscdex mscdex closed this as completed May 11, 2018
@mdouglass
Copy link
Contributor Author

Excellent, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.
Projects
None yet
Development

No branches or pull requests

3 participants