body-parser throws errors with ES6 / Babel 7 setup
See original GitHub issuedepd throws an error with Babel 7 setup
index.js:252
var file = callSite.getFileName() || '<anonymous>'
^
TypeError: callSite.getFileName is not a function
The bug was fixed in version 2.0.0 depd, and compiling with Babel 7 exposes the error
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Babel transpiled ES6 code (node.js) successfully, but when do ...
Dear all the issue is resolved now, the error is in the path defined at server.js at the below line: -import account from...
Read more >babel/parser
errorRecovery: By default, Babel always throws an error when it finds some invalid code. When this option is set to true , it...
Read more >Node.js Notes for Professionals
Section 35.1: Node ES6 Support and creating a project with Babel ... Section A.7: Install Node.js from source on Centos, RHEL and Fedora....
Read more >Babel issue running npm run dev after upgrade to Mix
I have an old Laravel App which I updated to Laravel 5.8. I removed all old resources files, package-lock.json, yarn.lock and gulp files....
Read more >Building a RESTful API with Express, PostgreSQL, and Node ...
With babel setup, we can now create our RESTful API using ES6. ... if (value.length < 8) { throw new Error('Password should be...
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
FYI the
master
branch now hasdepd
2.0.0, if you wanted to test it prior to release. Otherwise the release should come out as a minor sometime this week.Ok, I modified
index.js
to includeconsole.log("OK")
and the output printsOK
, so I guess then it is working fine. I tried on two different machines. I’m not sure how else to help, as without being able to reproduce the issue, I cannot help determine the cause. I would perhaps encourage one of the following courses of actions:I’m sorry I don’t have anything better than the above, but without being able to reproduce the issue, I am unable to help determine a fix 😦