Skip to content

Instantly share code, notes, and snippets.

一、为Create-react-app项目配置支持绝对路径引入模块
Messing around I just found one setting that works without craco for the absolute paths:
1 - Update .env file to NODE_PATH=./;
2 - Create one tsconfig.paths.json:
{
"compilerOptions": {