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.

RangeError: Invalid string length

See original GitHub issue

I’m having this bug in version 0.7.2:

[path/to/package-30:build:ts] Internal error! Please file a bug at https://github.com/google/wireit/issues/new, mention this message, that you encountered it in wireit version 0.7.2, and give information about your package.json files.
    Unknown error thrown: RangeError: Invalid string length
RangeError: Invalid string length

And with version 0.7.3 I’m having this other message:

file:///[...]/node_modules/wireit/lib/fingerprint.js:115
            this._str = JSON.stringify(this._data);
                             ^

RangeError: Invalid string length
    at JSON.stringify (<anonymous>)
    at get string [as string] (file:///[...]/node_modules/wireit/lib/fingerprint.js:115:30)
    at LocalCache._getCacheDir (file:///[...]/node_modules/wireit/lib/caching/local-cache.js:49:104)
    at LocalCache.get (file:///[...]/node_modules/wireit/lib/caching/local-cache.js:18:31)
    at file:///[...]/node_modules/wireit/lib/execution/standard.js:66:42
    at async StandardScriptExecution._acquireSystemLockIfNeeded (file:///[...]/node_modules/wireit/lib/execution/standard.js:142:28)
    at async StandardScriptExecution._execute (file:///[...]/node_modules/wireit/lib/execution/standard.js:45:20)

Node.js v18.9.1

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jorgecasarcommented, Nov 21, 2022

Incredible speed solving issues. It works perfectly. Thank you so much!

0reactions
aomarkscommented, Nov 19, 2022

Hi @jorgecasar, this should be fixed in 0.8.0 which I just released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught RangeError: Invalid string length when appending ...
Your 2-D array accesses are incorrect, but the main problem is that you're re-using the variable i in an inner loop: for (i...
Read more >
RangeError: Invalid string length with large files. · Issue #35973
When i'm trying to read a large Json File (700MB - 26.640.222 lines) using ReadStream i'm getting the error: "RangeError: Invalid string length" ......
Read more >
RangeError: invalid array length - JavaScript - MDN Web Docs
The JavaScript exception "Invalid array length" occurs when specifying an array length that is either negative, a floating number or exceeds ...
Read more >
Simplest solution to JSON.stringify RangeError: Invalid string ...
stringify RangeError: Invalid string length. We often come across this issue where the object or value passed to JSON.
Read more >
HTML : Uncaught RangeError: Invalid string length ... - YouTube
HTML : Uncaught RangeError : Invalid string length when appending to a string in JavaScript [ Beautify Your Computer ...
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