ui icon indicating copy to clipboard operation
ui copied to clipboard

[bug]: Getting no import alias found for Adonis Inertia Project(mistakenly recognize as Remix project)

Open fauzanrh opened this issue 1 year ago • 2 comments

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

  1. npm init adonisjs@latest
  2. setup tailwind as per docs
  3. 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

fauzanrh avatar Sep 09 '24 16:09 fauzanrh

same issue here

GradeyCullins avatar Sep 25 '24 22:09 GradeyCullins

Rename inertia to app, getTsConfigAliasPrefix function only supports app and src dir.

x-ray-s avatar Sep 27 '24 03:09 x-ray-s

Same problem here, has anyone solved it?

jonathan-pyt avatar Oct 17 '24 13:10 jonathan-pyt

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)

shadcn avatar Oct 17 '25 23:10 shadcn

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)

shadcn avatar Oct 24 '25 23:10 shadcn