1.16.0: TypeError: Cannot set property data of #<Object> which has only a getter
See original GitHub issueWhen 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:
- Created 4 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top 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 >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
Idk why I even bother helping if folks are going to thumbs down my comments.
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.