#turborepo + vite + ts - Failed to resolve import "@/query" from ...

3 messages · Page 1 of 1 (latest)

jaunty helm
#

the way to fix my issue atm is to use relative imports in the studio component so that vite app does not complain

import { queryKeys } from '../../query'
// import { queryKeys } from '@/query'
#

this is a certified ah annoying moment ngl

#

Failed to resolve import "@/query" from "../../packages/studio/src/hooks/query/use-users.ts". Does the file exist? these are two different packages, why does client even bother what @/query is? it's not its concern, it shall only import the Studio component from the studio package and it's the studio package's concern to handle @/query?