How to send messages from content to background
I tried to do send a message to the background but it doesn't seem to be called and I don't have any error. Just nothing happen. Am I doing this right?
9 Replies
Also, in
content.tsx
, I have a typescript error on name Type 'string' is not assignable to type 'never'.
Not sure if this is related.The message handles must be placed in
background/messages
Ah I missed that part. I just moved it from
background/upload-from-url.ts
to background/messages/upload-from-url.ts
. Thanks @labGave +1 Rep to @lab
What about the typescript error? Any idea what I'm having this?
that should be resolved after restart the ts server or running the dev server
Ah you're right. Thanks a lot.
yw!
@N1rvana has reached level 1. GG!