TSConfig Includes
I noticed this line in my tsconfig:
Im pretty sure the plasmo lines were added by plasmo, and I consistently have
Is it safe to remove?
"include": [".plasmo/index.d.ts", ".plasmo/**/*", "./**/*.ts", "./**/*.tsx"],
"include": [".plasmo/index.d.ts", ".plasmo/**/*", "./**/*.ts", "./**/*.tsx"],
tsc --noEmit
fail because of it:
.plasmo/static/common/csui-container-react.tsx:3:47 - error TS2307: Cannot find module '~type' or its corresponding type declarations.
3 import type { PlasmoCSUIContainerProps } from "~type"
~~~~~~~
.plasmo/static/common/csui-container-vanilla.tsx:1:47 - error TS2307: Cannot find module '~type' or its corresponding type declarations.
1 import type { PlasmoCSUIContainerProps } from "~type"
~~~~~~~
.plasmo/static/common/csui.ts:6:8 - error TS2307: Cannot find module '~type' or its corresponding type declarations.
6 } from "~type"
~~~~~~~
.plasmo/static/common/csui.ts:151:9 - error TS2322: Type 'null' is not assignable to type 'Element'.
151 let overlayHost: Element = null
~~~~~~~~~~~
.plasmo/static/common/csui.ts:187:33 - error TS7006: Parameter 'inlineAnchor' implicitly has an 'any' type.
187 inlineAnchorList.forEach((inlineAnchor) => {
~~~~~~~~~~~~
.plasmo/static/common/csui.ts:207:34 - error TS7006: Parameter 'el' implicitly has an 'any' type.
207 overlayAnchorList.forEach((el) => {
~~
.plasmo/static/common/csui.ts:288:12 - error TS2722: Cannot invoke an object which is possibly 'undefined'.
288 return renderFx(anchor, rootContainer)
~~~~~~~~
.plasmo/static/common/csui-container-react.tsx:3:47 - error TS2307: Cannot find module '~type' or its corresponding type declarations.
3 import type { PlasmoCSUIContainerProps } from "~type"
~~~~~~~
.plasmo/static/common/csui-container-vanilla.tsx:1:47 - error TS2307: Cannot find module '~type' or its corresponding type declarations.
1 import type { PlasmoCSUIContainerProps } from "~type"
~~~~~~~
.plasmo/static/common/csui.ts:6:8 - error TS2307: Cannot find module '~type' or its corresponding type declarations.
6 } from "~type"
~~~~~~~
.plasmo/static/common/csui.ts:151:9 - error TS2322: Type 'null' is not assignable to type 'Element'.
151 let overlayHost: Element = null
~~~~~~~~~~~
.plasmo/static/common/csui.ts:187:33 - error TS7006: Parameter 'inlineAnchor' implicitly has an 'any' type.
187 inlineAnchorList.forEach((inlineAnchor) => {
~~~~~~~~~~~~
.plasmo/static/common/csui.ts:207:34 - error TS7006: Parameter 'el' implicitly has an 'any' type.
207 overlayAnchorList.forEach((el) => {
~~
.plasmo/static/common/csui.ts:288:12 - error TS2722: Cannot invoke an object which is possibly 'undefined'.
288 return renderFx(anchor, rootContainer)
~~~~~~~~
1 Reply
The 2nd one should def be removed