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.

1.16.0: TypeError: Cannot set property data of #<Object> which has only a getter

See original GitHub issue

When launching 1.16.0 i get following exception:

TypeError: Cannot set property data of #<Object> which has only a getter
    at new Cookie (c:\project\node_modules\express-session\session\cookie.js:36:17)
    at MongoStore.Store.createSession (c:\project\node_modules\express-session\session\store.js:90:17)
    at c:\project\node_modules\express-session\index.js:479:15
    at promise.then.res (c:\project\node_modules\connect-mongo\src\index.js:10:20)
    at process._tickCallback (internal/process/next_tick.js:68:7)

NodeJS: 10.13

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
dougwilsoncommented, Apr 11, 2019

Idk why I even bother helping if folks are going to thumbs down my comments.

3reactions
dougwilsoncommented, Apr 11, 2019

Thanks, I appreciate it 👍Just looking I didn’t see any obvious regression. I am going to sleep where I live, but I’ll be back in approx 8 hours. If you or anyone experiencing this has a fix or a reproduction case, I will be checking back here as soon as I’m awake to push out whatever changes are necessary asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot set property getRequest of #<Object> which has only ...
spyOn tries to replace the property with a spy wrapping the original function but can't if the property is defined with only get...
Read more >
Cannot set property of #<Object> which has only a getter #587
The specific reason this happens is because assigning a property to an object where the property already exists on the prototype chain will ......
Read more >
TypeError: Cannot set Property which has only a Getter in JS
The "Cannot set property which has only a getter" error occurs when trying to set a new value to a property, for which...
Read more >
TypeError: setting getter-only property "x" - JavaScript | MDN
The JavaScript strict mode-only exception "setting getter-only property" occurs when there is an attempt to set a new value to a property for...
Read more >
Cannot set property data of #<Object> which has only a getter
going on? TypeError: Cannot set property data of #<Object> which has only a getter at Object.merge (/usr/local/lib/node/.npm/connect/1.0.3/package/
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