Kit*_*ten 3 javascript typescript reactjs material-ui next.js
我正在开发一个已安装的Next.js 13项目MUI,但 VS Code 不提供从@mui/material库的自动导入。这如屏幕截图所示。
从其他库自动导入在此文件夹中工作。在其他不基于 的项目中Next js 13,自动导入MUI也可以工作。请告诉我如何解决这个问题?
这是我的tsconfig.json如果有帮助的话:
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
Run Code Online (Sandbox Code Playgroud)
感谢您的关注!
| 归档时间: |
|
| 查看次数: |
1887 次 |
| 最近记录: |