ui
ui copied to clipboard
[bug]: Getting no import alias found for Adonis Inertia Project(mistakenly recognize as Remix project)
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:
{
"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
- [X] I've searched for existing issues
same issue here
Rename inertia to app, getTsConfigAliasPrefix function only supports app and src dir.
Same problem here, has anyone solved it?
This issue has been automatically marked as stale due to one year of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. (This is an automated message)
This issue has been automatically closed due to one year of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding! (This is an automated message)