Typescript baseUrl not working in React Typescript project
问题 I defined the baseUrl in my tsconfig.json file: "baseUrl": "src", In .eslintrc.js I have: parser: '@typescript-eslint/parser', parserOptions: { ecmaFeatures: { jsx: true, }, ecmaVersion: 2018, sourceType: 'module', project: './tsconfig.json', }, Now in e.g. index.tsx I can import my components like import Layout from 'components/layout'; When I run gatsby develop I get some errors like: If you're trying to use a package make sure that 'components/layout' is installed. If you're trying to use