TSConfig Includes

I noticed this line in my tsconfig:
"include": [".plasmo/index.d.ts", ".plasmo/**/*", "./**/*.ts", "./**/*.tsx"],
"include": [".plasmo/index.d.ts", ".plasmo/**/*", "./**/*.ts", "./**/*.tsx"],
Im pretty sure the plasmo lines were added by plasmo, and I consistently have 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)
~~~~~~~~
Is it safe to remove?
1 Reply
lab
lab•2y ago
The 2nd one should def be removed
Want results from more Discord servers?
Add your server