Closed muhozi closed 2 years ago
The package throws this error: Cannot assign to read only property 'orientation' of object
Cannot assign to read only property 'orientation' of object
Sometimes, This happens when you resize the browser window
I traced the issue, it's being thrown at this line: https://github.com/matthewhudson/current-device/blob/f8f301b262dc1346b51b995bd922e39add70947e/src/index.js#L367
I checked the code, and it looks like the device object is not being frozen at any point.
nvm, I found the issue. The issue was in our codebase!
Describe the Nug
The package throws this error:
Cannot assign to read only property 'orientation' of object
How To Reproduce
Sometimes, This happens when you resize the browser window
Error Messages and Tracebacks
I traced the issue, it's being thrown at this line: https://github.com/matthewhudson/current-device/blob/f8f301b262dc1346b51b995bd922e39add70947e/src/index.js#L367
I checked the code, and it looks like the device object is not being frozen at any point.