I'm encountering an error with the import alias configuration in my tsconfig.json file on an https://github.com/adonisjs/inertia-starter-kit project. The message shown is:
No import alias found in your tsconfig.json file. Visit https://ui.shadcn.com/docs/installation/remix to learn how to set an import alias.
Here is my current tsconfig.json file:
{
"extends": "@adonisjs/tsconfig/tsconfig.app.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "./build",
"baseUrl": "./",
"paths": {
"@/*": [ "./src/*" ] // Should always point to src
// "@/*": [ "./inertia/*" ] --> This doesn't work
}
},
"exclude": [
"./inertia/**/*",
"node_modules",
"build"
]
}
It seems like the issue could be related to this lines of code in
Affected component/components
project initialization
How to reproduce
npm init adonisjs@latest
setup tailwind as per docs
npx shadcn@latest init
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Ubuntu 22.04 node 22
Before submitting
[X] I've made research efforts and searched the documentation
Describe the bug
I'm encountering an error with the import alias configuration in my
tsconfig.json
file on an https://github.com/adonisjs/inertia-starter-kit project. The message shown is:No import alias found in your tsconfig.json file. Visit https://ui.shadcn.com/docs/installation/remix to learn how to set an import alias.
Here is my current
tsconfig.json
file:It seems like the issue could be related to this lines of code in
Affected component/components
project initialization
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting