Deprecation warnining in Node 7
See original GitHub issueExpected behavior
Things to work! (i.e. no deprecation warnings crashing Karma)
Actual behavior
node.exe : (node:2636) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
Environment Details
- Karma version (output of
karma --version
): 1.3.0 - Relevant part of your
karma.config.js
file: N/A (I think - here’s my config) - OS: Windows only
Steps to reproduce the behavior
- Run Karma in Node 7
- Watch the output
This came up in CI, and has been failing my Windows builds (oddly, it’s not affecting my Linux builds). Downgrading Node did fix the problem, though.
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Node.js deprecation warning and better developer experiences
Let's talk about v7 and the better developer experience it brings, discuss the Node.js deprecation warning and more.
Read more >[NodeJs16] DeprecationWarning: Invalid 'main' field #7 - GitHub
Hi, Since Nodejs 16 I am getting following DeprecationWarning: Invalid 'main' field in '\node_modules\objectorarray\package.json' of 'dist/index ...
Read more >Deprecated APIs | Node.js v19.3.0 Documentation
Node.js APIs might be deprecated for any of the following reasons: ... This means there will not be deprecation warnings for Buffer() usage...
Read more >(node: 15702) How to remove DeprecationWarning on Node.js?
I am getting a deprecation warning message on my shell while using Node.js. It started showing up in the middle of my project, ......
Read more >What is Node.js util.deprecate() ? - Educative.io
When util.deprecate() is called, it emits a DeprecationWarning using the 'warning' event. If the same code is provided for multiple calls ...
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 FreeTop 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
Top GitHub Comments
Just as a reference the deprecation warning was introduced with https://github.com/nodejs/node/pull/8169/commits/996389c0b9bf87e3b393d06e18e722635035d579 and reverted with https://github.com/nodejs/node/commit/4fffe32a4b3a93548c4d39b1c2531aa38403b5e6. So in the next 7.x node version it should not cause any troubles anymore, but it might be a breaking change in nodejs 8
Here’s the involved files:
karma.conf.js
:package.json
:test.js
: