Vite + React + TS: Cannot find module or its corresponding type declarations.

I've verified that everything is imported correctly but I don't understand why it fails.
15:52:47.870 Success: Finished cloning repository files
15:52:48.536 Detected the following tools from environment: [email protected], [email protected]
15:52:48.536 Installing project dependencies: npm clean-install --progress=false
15:52:55.704
15:52:55.704 added 225 packages, and audited 226 packages in 6s
15:52:55.704
15:52:55.705 41 packages are looking for funding
15:52:55.705 run `npm fund` for details
15:52:55.706
15:52:55.706 found 0 vulnerabilities
15:52:55.724 Executing user command: npm run build
15:52:56.942
15:52:56.942 > [email protected] build
15:52:56.943 > tsc && vite build
15:52:56.943
15:52:58.754 src/sections/Advantages.tsx(2,20): error TS2307: Cannot find module '../components/Advantages/Reason' or its corresponding type declarations.
15:52:58.805 Failed: Error while executing user command. Exited with error code: 2
15:52:58.816 Failed: build command exited with code: 1
15:52:59.743 Failed: error occurred while running build command
15:52:47.870 Success: Finished cloning repository files
15:52:48.536 Detected the following tools from environment: [email protected], [email protected]
15:52:48.536 Installing project dependencies: npm clean-install --progress=false
15:52:55.704
15:52:55.704 added 225 packages, and audited 226 packages in 6s
15:52:55.704
15:52:55.705 41 packages are looking for funding
15:52:55.705 run `npm fund` for details
15:52:55.706
15:52:55.706 found 0 vulnerabilities
15:52:55.724 Executing user command: npm run build
15:52:56.942
15:52:56.942 > [email protected] build
15:52:56.943 > tsc && vite build
15:52:56.943
15:52:58.754 src/sections/Advantages.tsx(2,20): error TS2307: Cannot find module '../components/Advantages/Reason' or its corresponding type declarations.
15:52:58.805 Failed: Error while executing user command. Exited with error code: 2
15:52:58.816 Failed: build command exited with code: 1
15:52:59.743 Failed: error occurred while running build command
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server