vscode error opening .plasmo/static/common/*.tsx and .plasmo/static/common/*.ts files
how do i fix these errors in .plasmo/static/content.tsx
7 Replies
the static/common files seem to be have errored.
example: unedited code in common/content.tsx (my content.tsx is in the root)
@cooper how did you stumble upon the error?
just opened the files in vs code
(problems go away when closing the files, obviously)
Oh the code in .plasmo directory? It's to be used in the pre-compilation process. If you wish to edit it, you will want to ignore those errors because the glue code doesn't care about type when added into .plasmo
the typing is used at the framework development layer tho
oh, can you tell me more (maybe document this error in brief here?)
and no, I don't wish to touch the code if it's just plasmo glue code
great framework btw
The type error you're seeing occurs because as you have noticed - it uses some development type path that pertains to the framework's source code directory and not the project dir
during compilation of your final project tho, these gluecode typing issue are ignored since they are irrelevant - treat them like js basically.
interesting, any plans to fix them? seems doable but low priority i guess