\r\n```\r\nMy `index.ts` is as below.\r\n\r\n```typescript\r\nimport { useFoo } from '~shared/foo'\r\n\r\nconst foo = useFoo;\r\n```\r\n\r\nI am getting below error.\r\n\r\n```\r\n[plugin:vite:import-analysis] Failed to resolve import \"~shared/foo\" from \"pages\\index.ts?macro=true\". Does the file exist?\r\nC:/Projects/GitLab/legal-disco-typescript/web-ui/pages/index.ts:1:0\r\n1 | import { useFoo } from \"~shared/foo\";\r\n | ^\r\n2 | const foo = useFoo;\r\n3 |\r\n at formatError (file:///C:/Projects/GitLab/my-project-typescript/web-ui/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:40862:46)\r\n at TransformContext.error (file:///C:/Projects/GitLab/my-project-typescript/web-ui/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:40858:19)\r\n at normalizeUrl (file:///C:/Projects/GitLab/my-project-typescript/web-ui/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:37595:33)\r\n at runMicrotasks (\u003Canonymous>)\r\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\r\n at async TransformContext.transform (file:///C:/Projects/GitLab/my-project-typescript/web-ui/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:37728:47)\r\n at async Object.transform (file:///C:/Projects/GitLab/my-project-typescript/web-ui/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:41111:30)\r\n at async loadAndTransform (file:///C:/Projects/GitLab/my-project-typescript/web-ui/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:37373:29\r\nClick outside or fix the code to dismiss.\r\nYou can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.\r\n```\n\n### Describe the bug\n\nFile import out of nuxt project not working even after setting paths in tsconfig.json\n\n### Additional context\n\nHave raised issue on stackoverflow as well.\r\nhttps://stackoverflow.com/questions/74244503/nuxt-3-tsconfig-path-is-not-working-from-parent-directory\n\n### Logs\n\n_No response_",[2965,2966],{"name":2893,"color":2894},{"name":2868,"color":2869},15302,"import out of nuxt project is not working even after setting paths in tsconfig.json","2023-01-19T17:47:37Z","https://github.com/nuxt/nuxt/issues/15302",0.66789985,{"labels":2973,"number":2976,"owner":2874,"repository":2874,"state":2897,"title":2977,"updated_at":2978,"url":2979,"score":2980},[2974,2975],{"name":2893,"color":2894},{"name":2868,"color":2869},26731,"ERROR Failed to resolve import \"#internal/nuxt/paths\" from \"virtual:nuxt:C:\\Users\\MyPc\\Workspace\\myproject\\apps\\myapp\\.nuxt\\fetch.mjs\". Does the file exist? ","2024-04-25T08:23:41Z","https://github.com/nuxt/nuxt/issues/26731",0.67270225,["Reactive",2982],{},["Set"],["ShallowReactive",2985],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_bMJZR7Qu2JOuKdeZnd83SyApct1R8LuqjHbvi6BF4s":-1},"/nuxt/nuxt/22228"]