The file cannot be found

I am not sure if this is a stupid question. I declare lots of types but when I try to export them in index.ts. v0 preview told me that it cannot find the files. If I comment out “export * from “./common”;”, then The file “./product” cannot be found.
I tried:

  1. Download them and run in VScode. No error.
  2. try to use @/types/common as absolute path. Still not Found in v0, cannot preview. No error in Local and building.
  3. The tsconfig.json in Download project clearly defines
    “baseUrl”: “.”,
    “paths”: {
    “@/“: [”./”]
    }
  4. components.json in components.json clearly defines :
    “aliases”: {
    “types”: “@/types”,
    “services”: “@/services”,
    “components”: “@/components”,
    “utils”: “@/lib/utils”,
    “ui”: “@/components/ui”,
    “lib”: “@/lib”,
    “hooks”: “@/hooks”
    },



Next.js. It works well on Local, Production without any error.

Hi @jackpanger, sorry that you’re facing this issue. Can you share the chatID where you are facing this issue? This will help us try and reason about the issue.

1 Like

Here is the ID: path-issue-Vlnee42lRw5. Should I share you a link and permission?

I use index.ts in types and translations folder.
At the beginning providers don’t work so I tried to change the provider to zustand. So far there are only import issues. No sure if provider would work well after import issue are fixed.

Thanks. @anshumanb

Hi @jackpanger, thanks for sharing this information. I’ve reached out to in DM for some more information.

The same problem

The file “./HttpStatus” cannot be found. Make sure the file exists.

The file exists
Chat typescript-page-creation-q6e1p1E3xEz

same problem with my repo.

Hi there, I’ve shared this with our team. I’ll keep you posted when we hear back from them.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.