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.

Exception has occurred: TypeError: Cannot assign to read only property 'name'...

See original GitHub issue

Describe the bug

Exception has occurred: TypeError: Cannot assign to read only property 'name' of function 'function generateUUID(value, namespace, buf, offset) {
    if (typeof value === 'string') {
      value = strin...<omitted>... }'

How to reproduce

I’m not what to put here, this is throwing the error referencing my main JS file, but that file has no reference to the uuid functions.

Expected behavior

To not give this error lol.

Runtime

Node.js 14.15.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Duckerscommented, Mar 21, 2021

Is this really necessary? Even when not using v35 I get this super annoying error all the time when running with debugger

0reactions
rezshekcommented, Jun 30, 2022

Is this really necessary? Even when not using v35 I get this super annoying error all the time when running with a debugger

Same here, any way around it? I’m trying to connect to Cosmos DB with @azure/client and this is what happens as soon as I hot the API that I have there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot assign to read only property 'name' of object '[object ...
Show activity on this post. The following code will throw an error only for the name property. It could be fixed by specifying...
Read more >
Cannot assign to read only property of Object in TypeScript
The TypeScript error "Cannot assign to read only property of object" occurs when we try to change a property of a frozen object...
Read more >
TypeError: "x" is read-only - JavaScript - MDN Web Docs
The JavaScript strict mode-only exception "is read-only" occurs when a global variable or object property that was assigned to is a read-only property....
Read more >
[Cannot assign to read only property '<field_name>' of object ...
This type of error(Cannot assign to read-only property) generally occurs on update of public property @api decorator variable value.
Read more >
Cannot assign to read only property 'name' of function ' #2027
hi, it was working fine before, but I got this issue tonight This is the error: Cannot assign to read only property 'name'...
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