\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_",[2992,2993],{"name":2920,"color":2921},{"name":2904,"color":2905},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":3000,"number":3003,"owner":2910,"repository":2910,"state":2924,"title":3004,"updated_at":3005,"url":3006,"score":3007},[3001,3002],{"name":2920,"color":2921},{"name":2904,"color":2905},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,{"description":3009,"labels":3010,"number":3015,"owner":2910,"repository":2910,"state":2924,"title":3016,"updated_at":3017,"url":3018,"score":3019},"### Environment\n\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v21.2.0\r\n- Nuxt Version: 3.9.0\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.1\r\n- Package Manager: yarn@1.22.21\r\n- Builder: -\r\n- User Config: devtools, components\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nimport an external component library on app.vue in the nuxt scaffold app and get error:\r\n`[vite-node] [ERR_LOAD_URL] @someOrg/someLib/index.js` \n\n### Describe the bug\n\nWhen using an external organization scoped package it fails to resolve the path at build time with error:\r\n```\r\nERROR Pre-transform error: Failed to resolve import \"@someOrg/someLib/index.js\" from \"app.vue\". Does the file exist?\r\n```\r\nI've tried removing the scope locally and the import works after, i.e. `import { AppButton } from \"someOrg/someLib/index.js\"\";`\r\n\r\nThis happens after upgrading to version 3.9.0, and was not happening with version 3.8.2\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3011,3012,3013],{"name":2920,"color":2921},{"name":2904,"color":2905},{"name":3014,"color":2947},"needs reproduction",25055,"[nuxt 3.9] build failed when importing components from npm package","2024-01-05T20:36:38Z","https://github.com/nuxt/nuxt/issues/25055",0.6743121,["Reactive",3021],{},["Set"],["ShallowReactive",3024],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_bMJZR7Qu2JOuKdeZnd83SyApct1R8LuqjHbvi6BF4s":-1},"/nuxt/nuxt/22228"]