question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using this library with Node 13, I receive the following:

uncaughtException: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at ReadStream.deprecated [as open] (internal/util.js:55:22)
    at ReadStream.open (/project/node_modules/fs-capacitor/lib/index.js:90:11)
    at _openReadFs (internal/fs/streams.js:123:12)
    at ReadStream.<anonymous> (internal/fs/streams.js:116:3)
    at ReadStream.deprecated [as open] (internal/util.js:70:15)
    at ReadStream.open (/project/node_modules/fs-capacitor/lib/index.js:90:11)
    at _openReadFs (internal/fs/streams.js:123:12)
    at ReadStream.<anonymous> (internal/fs/streams.js:116:3)
    at ReadStream.deprecated [as open] (internal/util.js:70:15)
    at ReadStream.open (/project/node_modules/fs-capacitor/lib/index.js:90:11)
(node:55196) [DEP0135] DeprecationWarning: ReadStream.prototype.open() is deprecated

This is an issue with fs-capacitor https://github.com/mike-marcacci/fs-capacitor/issues/15 which has been fixed in 3.0.0 so need a version bump on this package

I can resolve this temporarily with this in my package.json

    "resolutions": {
        "fs-capacitor": "3.0.0"
    }

There is now fs-capacitor 5.0.0 as well but haven’t tried it

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:29 (4 by maintainers)

github_iconTop GitHub Comments

38reactions
edencommented, Oct 13, 2020

For anyone still hitting this, the resolutions seems to work correctly without globbing. For example:

  "resolutions": {
    "fs-capacitor":"^6.2.0",
    "graphql-upload": "^11.0.0"
  }

Also make sure you include the preinstall script: npx npm-force-resolutions

21reactions
gengjiawencommented, Jun 10, 2020

This worked for me when I am on Node.js 14

  "resolutions": {
    "**/**/fs-capacitor":"^6.2.0",
    "**/graphql-upload": "^11.0.0"
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js - endoflife.date
Release Released Active Support Se... 19 2 months and 1 week ago. (18 Oct 2022) Ends in 3 months. (01 Apr 2023) En... 18 (...
Read more >
Node.js Release Working Group - GitHub
There are three phases that a Node.js release can be in: 'Current', 'Active Long Term Support (LTS)', and 'Maintenance'. Odd-numbered release lines are ......
Read more >
Node v13.13.0 (Current)
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Read more >
Node.js ES2015/ES6, ES2016 and ES2017 support
Yes. Yes Yes. Yes Error. Error Error. Error Error. Error Error. Error function() function() function() function() function() function() function() function() function() function() function() function() function() function()...
Read more >
Supported Node versions - Node-RED
Supported Node versions. Node-RED currently recommends Node 16.x LTS. Version, Support Level, Notes. < 10.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found