/home/user/Desktop/project/public/dash/node_modules/react-dev-utils/ModuleScopePlugin.js:32
request.descriptionFileRoot.indexOf('/node_modules/') !== -1 ||
^
TypeError: Cannot read properties of undefined (reading 'indexOf')
at /home/user/Desktop/project/public/dash/node_modules/react-dev-utils/ModuleScopePlugin.js:32:39
at Hook.eval [as callAsync] (eval at create (/home/user/Desktop/project/public/dash/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:52:1)
at Resolver.doResolve (/home/user/Desktop/project/public/dash/node_modules/enhanced-resolve/lib/Resolver.js:432:16)
at /home/user/Desktop/project/public/dash/node_modules/enhanced-resolve/lib/TryNextPlugin.js:32:14
at _next0 (eval at create (/home/user/Desktop/project/public/dash/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:173:1)
at eval (eval at create (/home/user/Desktop/project/public/dash/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:195:1)
at /home/user/Desktop/project/public/dash/node_modules/enhanced-resolve/lib/ConditionalPlugin.js:40:47
at Hook.eval [as callAsync] (eval at create (/home/user/Desktop/project/public/dash/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:187:1)
at Resolver.doResolve (/home/user/Desktop/project/public/dash/node_modules/enhanced-resolve/lib/Resolver.js:432:16)
at /home/user/Desktop/project/public/dash/node_modules/enhanced-resolve/lib/ConditionalPlugin.js:42:14
config-overrides.js
some-common-types/firstFile.ts
some-common-types/secondFile.ts
Let's call it inside a React component.
Error