Replies: 14 comments
-
Make sure you run the dev server and restart TS, otherwise the declaration will not register. |
Beta Was this translation helpful? Give feedback.
-
thanks, it's my wrong |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@bilalafzal-ti Can you show me the tree of your project? |
Beta Was this translation helpful? Give feedback.
-
@louisgv Calling the sendToBackground function from popup.tsx I even moved the type definition files from background/messages/ping to /background.ts but it did not work. |
Beta Was this translation helpful? Give feedback.
-
@bilalafzal-ti try |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@louisgv -- Not sure who closed this, has this been fixed? |
Beta Was this translation helpful? Give feedback.
-
@drmikecrowe try upgrade all your dependency |
Beta Was this translation helpful? Give feedback.
-
This error occurs when the TS Language server in VSCode has yet to register the new tsconfig file that was mutated when the dev server was created So the steps to fix this are:
The type will be This is a common procedure whenever a new type package is added BTW |
Beta Was this translation helpful? Give feedback.
-
Adding |
Beta Was this translation helpful? Give feedback.
-
the
|
Beta Was this translation helpful? Give feedback.
-
There is no problem with the TS server, editor, or user usage. As I wrote above, this is a bug. If this workaround does not work, the causes are compounded and other posts in this thread may be helpful. |
Beta Was this translation helpful? Give feedback.
-
What happened?
A bug happened!
why
name
isnever
? exceped isstring
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions