Open
Description
{
"compilerOptions": {
"target": "ES6",
"lib": ["ES2016","DOM"],
"jsx": "react",
"module": "Node16",
"rootDir": "./src",
"moduleResolution": "node16",
"resolveJsonModule": true,
"allowJs": false,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"paths": { "@company/app/*": ["./src/*"] },
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"strictNullChecks": true,
"noImplicitThis": true,
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["node_modules"],
"tsc-alias": {
"resolveFullPaths": true
}
}
PS D:\App> tsgo
src/components/ConfirmationDialog.stories.tsx:4:36 - error TS2307: Cannot find module '@company/app' or its corresponding type declarations.
4 import { ConfirmationDialog } from '@company/app'
~~~~~~~~~~~~~~~~~~~~
src/components/DraggableList.stories.tsx:4:31 - error TS2307: Cannot find module '@company/app' or its corresponding type declarations.
4 import { DraggableList } from '@company/app'
~~~~~~~~~~~~~~~~~~~~
src/components/DraggableList.stories.tsx:25:24 - error TS7006: Parameter 'event' implicitly has an 'any' type.
25 onElementDragged: (event, update) => {
~~~~~
src/components/DraggableList.stories.tsx:25:31 - error TS7006: Parameter 'update' implicitly has an 'any' type.
25 onElementDragged: (event, update) => {
~~~~~~
src/components/DraggableList.stories.tsx:42:20 - error TS7006: Parameter 'element' implicitly has an 'any' type.
42 getElementId: (element) => element.name,
~~~~~~~
src/components/DraggableList.stories.tsx:43:21 - error TS7006: Parameter 'element' implicitly has an 'any' type.
43 renderElement: (element) => <Card style={{ width: '100%' }}>
~~~~~~~
src/components/DraggableList.stories.tsx:46:24 - error TS7006: Parameter 'event' implicitly has an 'any' type.
46 onElementDragged: (event, update) => {
~~~~~
src/components/DraggableList.stories.tsx:46:31 - error TS7006: Parameter 'update' implicitly has an 'any' type.
46 onElementDragged: (event, update) => {
~~~~~~
Found 8 errors in 2 files.
Errors Files
1 src/components/ConfirmationDialog.stories.tsx:4
7 src/components/DraggableList.stories.tsx:4
PS D:\App> tsgo
PS D:\App>
When I run tsgo without the dist
folder being already generated, it displays the above errors, and compiles incompletely.
When I run tsgo after the dist
folder is generated, it doesn't error at all, and correctly compiles completely.