Problem during Typescript MERN app web service deployment

Hello everyone! Last time I have decided to create Web service and deploy my MERN + (Typescript) App on Render.com. Everything was ok, till the moment when program started with client side. Console shows this:
Mar 12 05:38:19 PM client/src/App.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/App.tsx(5,37): error TS2307: Cannot find module ‘@react-oauth/google’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/App.test.tsx(2,32): error TS2307: Cannot find module ‘@testing-library/react’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/App.test.tsx(5,1): error TS2593: Cannot find name ‘describe’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/App.test.tsx(6,3): error TS2593: Cannot find name ‘test’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/App.test.tsx(12,5): error TS2304: Cannot find name ‘expect’.
Mar 12 05:38:19 PM client/src/tests/Home.test.tsx(2,32): error TS2307: Cannot find module ‘@testing-library/react’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/Home.test.tsx(5,1): error TS2593: Cannot find name ‘describe’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/Home.test.tsx(6,3): error TS2593: Cannot find name ‘test’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/Home.test.tsx(13,5): error TS2304: Cannot find name ‘expect’.
Mar 12 05:38:19 PM client/src/tests/Home.test.tsx(14,5): error TS2304: Cannot find name ‘expect’.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(1,32): error TS2307: Cannot find module ‘@testing-library/react’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(2,23): error TS2307: Cannot find module ‘@testing-library/user-event’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(4,37): error TS2307: Cannot find module ‘@react-oauth/google’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(7,1): error TS2593: Cannot find name ‘describe’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(8,3): error TS2593: Cannot find name ‘test’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(33,7): error TS2304: Cannot find name ‘expect’.
Mar 12 05:38:19 PM client/src/tests/LoginFormTemplate.test.tsx(37,3): error TS2593: Cannot find name ‘test’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/RegisterFormTemplate.test.tsx(1,32): error TS2307: Cannot find module ‘@testing-library/react’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/tests/RegisterFormTemplate.test.tsx(4,1): error TS2593: Cannot find name ‘describe’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/RegisterFormTemplate.test.tsx(5,3): error TS2593: Cannot find name ‘test’. Do you need to install type definitions for a test runner? Try npm i --save-dev @types/jest or npm i --save-dev @types/mocha and then add ‘jest’ or ‘mocha’ to the types field in your tsconfig.
Mar 12 05:38:19 PM client/src/tests/RegisterFormTemplate.test.tsx(45,7): error TS2304: Cannot find name ‘expect’.
Mar 12 05:38:19 PM client/src/actions/userActions.ts(3,15): error TS7016: Could not find a declaration file for module ‘lodash’. ‘/opt/render/project/src/node_modules/lodash/lodash.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/lodash if it exists or add a new declaration (.d.ts) file containing declare module 'lodash';
Mar 12 05:38:19 PM client/src/components/BirthDateInput/BirthDate.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/Burger/Burger.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/Burger/Burger.tsx(5,20): error TS2307: Cannot find module ‘./Burger.module.scss’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/DesktopNav/DesktopNav.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/DesktopNav/DesktopNav.tsx(8,22): error TS2307: Cannot find module ‘…/…/images/home.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/DesktopNav/DesktopNav.tsx(9,22): error TS2307: Cannot find module ‘…/…/images/news.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/DesktopNav/DesktopNav.tsx(12,24): error TS2307: Cannot find module ‘…/…/images/search.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/FileInput/FileInput.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/FollowUnfollow/FollowUnfollow.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/Footer/Footer.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/GoogleLoginComp/GoogleLoginComp.tsx(1,29): error TS2307: Cannot find module ‘@react-oauth/google’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/GoogleLoginComp/GoogleLoginComp.tsx(15,21): error TS7006: Parameter ‘res’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/GoogleLoginComp/service.ts(1,26): error TS2307: Cannot find module ‘Redux’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/LikesContent/LikesContent.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/LikesContent/LikesContent.tsx(3,18): error TS2307: Cannot find module ‘…/…/images/like.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/LikesContent/LikesContent.tsx(4,21): error TS2307: Cannot find module ‘…/…/images/notLike.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/LoadingIcon/LoadingIcon.style.ts(1,35): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/LoadingIcon/LoadingIcon.tsx(1,24): error TS2307: Cannot find module ‘…/…/images/loading.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/LoginFormTemplate/LoginFormTemplate.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/LoginSignupSwitcher/LoginSignupSwitcher.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/MainImg/MainImg.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/MainImg/MainImg.tsx(1,27): error TS2307: Cannot find module ‘…/…/images/networking.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/MainUserPageForm/MainUserPageForm.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/MobileNav/MobileNav.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/MobileNav/MobileNav.tsx(12,24): error TS2307: Cannot find module ‘…/…/images/search.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/MobileNav/MobileNav.tsx(13,22): error TS2307: Cannot find module ‘…/…/images/home.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/MobileNav/MobileNav.tsx(14,22): error TS2307: Cannot find module ‘…/…/images/news.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/MobileNav/MobileNav.tsx(18,20): error TS2307: Cannot find module ‘./MobileNav.module.scss’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/Modal/Modal.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/Modal/Modal.style.ts(5,15): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/Modal/Modal.tsx(3,22): error TS2307: Cannot find module ‘…/…/images/cross-mark.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/NoImgAvatar/NoImgAvatar.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/NoImgAvatar/NoImgAvatar.style.ts(14,13): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/NoImgAvatar/NoImgAvatar.tsx(1,19): error TS2307: Cannot find module ‘…/…/images/user.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/Pagination/Pagination.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/Pagination/Pagination.style.ts(17,13): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/PasswordInput/PasswordInput.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/PasswordInput/PasswordInput.tsx(3,18): error TS2307: Cannot find module ‘…/…/images/view.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/PasswordInput/PasswordInput.tsx(4,18): error TS2307: Cannot find module ‘…/…/images/hide.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/RegisterFormTemplate/RegisterFormTemplate.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/SearchUser/SearchUser.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/SearchUser/SearchUser.style.ts(9,12): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/SearchUser/SearchUser.style.ts(33,15): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/SearchUser/SearchUser.tsx(3,22): error TS2307: Cannot find module ‘…/…/images/cross-mark.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/SubmitInput/SubmitInput.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/TextArea/TextArea.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/TextArea/TextArea.style.ts(10,13): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/TextFormInput/TextFormInput.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/TextFormInput/TextFormInput.style.ts(10,13): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/TextFormInput/TextFormInput.style.ts(18,14): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/TextFormInput/TextFormInput.tsx(17,21): error TS7006: Parameter ‘e’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/Thought/Thought.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/UserBar/UserBar.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/UserBar/UserBar.style.ts(5,24): error TS7006: Parameter ‘props’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM client/src/components/UserForm/UserForm.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/UserHeader/UserHeader.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/UserHeader/UserHeader.tsx(5,20): error TS2307: Cannot find module ‘./UserHeader.module.scss’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserNavDropdown/UserNavDropdown.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/UserNavDropdown/UserNavDropdown.tsx(8,21): error TS2307: Cannot find module ‘…/…/images/edit.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserNavDropdown/UserNavDropdown.tsx(9,23): error TS2307: Cannot find module ‘…/…/images/log-out.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserNavDropdown/UserNavDropdown.tsx(12,25): error TS2307: Cannot find module ‘…/…/images/dropdown.png’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserNavDropdown/UserNavDropdown.tsx(22,20): error TS2307: Cannot find module ‘./UserNavDropdown.module.scss’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.tsx(1,31): error TS2307: Cannot find module ‘@cloudinary/react’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.tsx(2,28): error TS2307: Cannot find module ‘@cloudinary/url-gen’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.tsx(5,34): error TS2307: Cannot find module ‘@cloudinary/url-gen/actions/resize’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.tsx(6,26): error TS2307: Cannot find module ‘@cloudinary/url-gen/actions/roundCorners’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.tsx(9,25): error TS2307: Cannot find module ‘@cloudinary/url-gen/qualifiers/gravity’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/components/UserProfileImg/UserProfileImg.tsx(10,25): error TS2307: Cannot find module ‘@cloudinary/url-gen/qualifiers/focusOn’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/index.tsx(2,22): error TS7016: Could not find a declaration file for module ‘react-dom/client’. ‘/opt/render/project/src/node_modules/react-dom/client.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/react-dom if it exists or add a new declaration (.d.ts) file containing declare module 'react-dom/client';
Mar 12 05:38:19 PM client/src/pages/EditUserDataPage/EditUserDataPage.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/pages/Home/Home.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/pages/MainUserPage/MainUserPage.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/pages/RegisterLogin/RegistLogin.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/pages/UserInfoPage/UserInfoPage.style.ts(1,20): error TS7016: Could not find a declaration file for module ‘styled-components’. ‘/opt/render/project/src/node_modules/styled-components/dist/styled-components.cjs.js’ implicitly has an ‘any’ type.
Mar 12 05:38:19 PM Try npm i --save-dev @types/styled-components if it exists or add a new declaration (.d.ts) file containing declare module 'styled-components';
Mar 12 05:38:19 PM client/src/reportWebVitals.ts(1,31): error TS2307: Cannot find module ‘web-vitals’ or its corresponding type declarations.
Mar 12 05:38:19 PM client/src/reportWebVitals.ts(5,12): error TS2307: Cannot find module ‘web-vitals’ or its corresponding type declarations.
Mar 12 05:38:19 PM ==> Build failed :disappointed:
Mar 12 05:38:19 PM ==> Generating container image from build. This may take a few minutes…

What is a reason of this Render behavour?

tsconfig.ts on backend side:
{
“compilerOptions”: {
“outDir”: “dist”,
“baseUrl”: “.”,
“lib”: [“dom”],
“target”: “ES6”,
“module”: “commonjs”,
“moduleResolution”: “node”,
“esModuleInterop”: true,
“allowSyntheticDefaultImports”: true,
“allowJs”: true,
“noImplicitAny”: true,
“sourceMap”: true,
“skipLibCheck”: true,
“jsx”: “react-jsx”,
“types”:
},
“include”: [“**/*”]
}

package.json on backend side:
{
“name”: “social-app”,
“version”: “1.0.0”,
“description”: “MERN social app backend”,
“main”: “dist/index.js”,
“scripts”: {
“test”: “echo "Error: no test specified" && exit 1”,
“start”: “node index.js”,
“server”: “nodemon index.js”,
“build”: “npm install && tsc”
},
“author”: “Karol Chilimoniuk”,
“license”: “ISC”,
“dependencies”: {
“axios”: “^0.27.2”,
“bcrypt”: “^5.0.1”,
“body-parser”: “^1.20.0”,
“cloudinary”: “^1.32.0”,
“concurrently”: “^7.6.0”,
“cookie-parser”: “^1.4.6”,
“cors”: “^2.8.5”,
“dotenv”: “^16.0.1”,
“express”: “^4.18.1”,
“http-proxy-middleware”: “^2.0.6”,
“jest”: “^28.1.1”,
“joi”: “^17.6.0”,
“joi-password-complexity”: “^5.1.0”,
“jsonwebtoken”: “^8.5.1”,
“jwt-decode”: “^3.1.2”,
“mongodb”: “^4.6.0”,
“mongoose”: “^6.3.4”,
“multer”: “^1.4.5-lts.1”,
“nodemon”: “^2.0.21”,
“react-redux”: “^8.0.2”,
“react-router-dom”: “^6.3.0”,
“redux”: “^4.2.0”,
“redux-thunk”: “^2.4.1”,
“styled-components”: “^5.3.5”,
“typescript”: “^4.7.4”,
“uuid”: “^9.0.0”,
“uuidv4”: “^6.2.13”
},
“engines”: {
“node”: “16.x”
},
“devDependencies”: {
“@types/bcrypt”: “^5.0.0”,
“@types/cookie-parser”: “^1.4.3”,
“@types/cors”: “^2.8.12”,
“@types/express”: “^4.17.13”,
“@types/jest”: “^28.1.6”,
“@types/jsonwebtoken”: “^8.5.8”,
“@types/multer”: “^1.4.7”
}
}

tsconfig.ts on client side:

{
“compilerOptions”: {
“target”: “es2017”,
“lib”: [“dom”, “dom.iterable”, “esnext”],
“allowJs”: true,
“skipLibCheck”: true,
“esModuleInterop”: true,
“allowSyntheticDefaultImports”: true,
“strict”: true,
“forceConsistentCasingInFileNames”: true,
“noFallthroughCasesInSwitch”: true,
“module”: “esnext”,
“moduleResolution”: “node”,
“resolveJsonModule”: true,
“isolatedModules”: true,
“noEmit”: true,
“types”: ,
“jsx”: “react-jsx”
},
“include”: [“src”]
}

package.json on client side:
{
“name”: “social-app”,
“version”: “0.1.0”,
“private”: true,
“dependencies”: {
“@cloudinary/react”: “^1.6.0”,
“@cloudinary/url-gen”: “^1.8.6”,
“@react-oauth/google”: “^0.2.6”,
“@testing-library/jest-dom”: “^5.16.4”,
“@testing-library/react”: “^13.2.0”,
“@testing-library/user-event”: “^13.5.0”,
“@types/jest”: “^27.5.2”,
“@types/node”: “^16.11.36”,
“@types/react”: “^18.0.9”,
“@types/react-dom”: “^18.0.5”,
“@types/styled-components”: “^5.1.26”,
“axios”: “^0.27.2”,
“jest”: “^28.1.1”,
“lodash”: “^4.17.21”,
“react”: “^18.2.0”,
“react-dom”: “^18.1.0”,
“react-google-login”: “^5.2.2”,
“react-paginate”: “^8.1.4”,
“react-redux”: “^8.0.2”,
“react-router-dom”: “^6.3.0”,
“react-scripts”: “5.0.1”,
“redux”: “^4.2.0”,
“redux-thunk”: “^2.4.1”,
“sass”: “^1.52.2”,
“styled-components”: “^5.3.5”,
“typescript”: “^4.7.4”,
“web-vitals”: “^2.1.4”
},
“scripts”: {
“start”: “set PORT=3000 && react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
},
“eslintConfig”: {
“extends”: [
“react-app”,
“react-app/jest”
]
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
}
}

I have no idea what to do :confused: Thank you in andvance for your responses.

Hey there,

Definitely, the first thing to check is if you’re installing your dependencies as part of the build command - you always need to make sure you’re performing a npm install or yarn before you perform any actual build commands,

Regards,

John B

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.