I have a weird issue that wasted too much time. I have content script that tries to read some data from the storage.sync API but it fails.
I\'ve added the storage permis
I had the same error and it was caused due to debugger stopping the flow of execution in the middle. Once I removed the debugger / breakpoints in my 'Content Script' and 'Background Script' and reloaded everything then I didn't see the error.