Failed npm run build with lots of errors:
Failed npm run build with lots of errors:
message.txt17.85KB
Cannot find module '@hooks/useKeys' suggests that the module useKeys cannot be found at the specified path. Make sure that the file exists and the path is correct.node_modules directory, you might need to install them. You can do this by running npm install in your project directory.tsconfig.json file is correctly set up. You might need to adjust your compilerOptions to correctly resolve modules.tsconfig.json file seems to be correctly set up for a typical TypeScript project. However, the errors you're encountering suggest that the paths for certain modules can't be resolved.paths option in your tsconfig.json file. You've set "@/*": ["./*"] which means that TypeScript will look for modules starting with @/ in the same directory as the tsconfig.json file. If your modules are located elsewhere, you'll need to adjust this path.src directory, you might need to change your paths option to:@/ imports in the src directory.baseUrl is correctly set. The baseUrl is a directory that TypeScript uses to resolve non-relative module names. In your case, it's set to ./src, which means TypeScript will use the src directory as a starting point for module resolution.
@refinedev/core/src…? Leaning on to this because i dont think there are any reasons for the tsconfig file in a node modules to be included in the run like this refine whoami through @refinedev/cli exclude field in your tsconfig.json? If so, does it include node_modules in it?Cannot find module '@hooks/useKeys'useKeyscompilerOptions"@/*": ["./*"]@/@/srcsrcsrcbaseUrlbaseUrl./src@refinedev/core/src…refine whoami@refinedev/cliexclude"paths": {
"@/*": ["./src/*"]
}