Techy Things

TFunction TS2345: Argument of type 'xyz' is not assignable to parameter of type 0

TFunction TS2345: Argument of type 'xyz' is not assignable to parameter of type

Property '$TFunctionBrand' is missing in type ... ERROR in src/pages/todos/todos.tsx:27:16 TS2345: Argument of type 'import("C:/dev/react-scss-jest-typescript/node_modules/react-i18next/ts4.1/index").TFunction<"translation", undefined>' is not assignable to parameter of type 'import("C:/dev/react-scss-jest-typescript/node_modules/i18next/typescript/t.v4").TFunction<"translation", undefined>'. Property '$TFunctionBrand' is missing in type 'import("C:/dev/react-scss-jest-typescript/node_modules/react-i18next/ts4.1/index").TFunction<"translation", undefined>' but...

Error: Can't resolve 'http' in ...\node_modules\https-browserify 0

Error: Can't resolve 'http' in ...\node_modules\https-browserify

ERROR in ./node_modules/https-browserify/index.js 1:11-26 Module not found: Error: Can't resolve 'http' in 'C:\dev\react-scss-jest-typescript\node_modules\https-browserify' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case....

code: 'ERR_OSSL_EVP_UNSUPPORTED' error:0308010C:digital envelope routines::unsupported 0

code: 'ERR_OSSL_EVP_UNSUPPORTED' error:0308010C:digital envelope routines::unsupported

Starting the development server... C:\dev\react-scss-jest-typescript\node_modules\react-scripts\scripts\start.js:19 throw err; ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) at module.exports (C:\dev\react-scss-jest-typescript\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\dev\react-scss-jest-typescript\node_modules\webpack\lib\NormalModule.js:417:16) at C:\dev\react-scss-jest-typescript\node_modules\webpack\lib\NormalModule.js:452:10 at C:\dev\react-scss-jest-typescript\node_modules\webpack\lib\NormalModule.js:323:13 at C:\dev\react-scss-jest-typescript\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at C:\dev\react-scss-jest-typescript\node_modules\loader-runner\lib\LoaderRunner.js:233:18 at...

ValueError: invalid mode: 'rU' while trying to load binding.gyp 0

ValueError: invalid mode: 'rU' while trying to load binding.gyp

Traceback (most recent call last): File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\gyp_main.py", line 51, in <module> sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 670, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 662, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line...

ModuleNotFoundError: No module named 'distutils' 0

ModuleNotFoundError: No module named 'distutils'

from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 Solution $ pip install setuptools Why? Because distutils was removed as...

E: You must put some 'deb-src' URIs in your sources.list 0

E: You must put some 'deb-src' URIs in your sources.list

pi@pi5:~/wf-panel-pi $ sudo apt build-dep wf-panel-pi Reading package lists... Done E: You must put some 'deb-src' URIs in your sources.list   Solution Uncomment the three lines in /etc/apt/sources.list deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware...

TS2786: 'Button' cannot be used as a JSX component 0

TS2786: 'Button' cannot be used as a JSX component

When upgrading from react-scripts 4.X to 5.X Compiled with problems: × ERROR in src/App.tsx:51:10 TS2786: 'Button' cannot be used as a JSX component. Its return type 'ReactElement<any, string | JSXElementConstructor<any>> | null' is not...