Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: unable to resolve module ~/utils #1610

Open
MagnumGoYB opened this issue Nov 30, 2024 · 3 comments
Open

error: unable to resolve module ~/utils #1610

MagnumGoYB opened this issue Nov 30, 2024 · 3 comments

Comments

@MagnumGoYB
Copy link

Using an drizzle-orm:
image
image

This will result in an error :
image
image

That's ok :
image

tsconfig.json :
image

@fredr
Copy link
Member

fredr commented Dec 9, 2024

What does your file structure look like? where is the utils folder relative to the tsconfig.json? does it for instance work if you change it to this?

      "~utils/*": ["./utils/*"],

and import it as ~utils/columns.helpers?

@MagnumGoYB
Copy link
Author

MagnumGoYB commented Dec 10, 2024

What does your file structure look like? where is the utils folder relative to the tsconfig.json? does it for instance work if you change it to this?

      "~utils/*": ["./utils/*"],

and import it as ~utils/columns.helpers?

The paths entry in my tsconfig.json is configured "~/*": "./*"
this configuration cannot override "~/utils /*": "./ utils/*"?

@MagnumGoYB
Copy link
Author

What does your file structure look like? where is the utils folder relative to the tsconfig.json? does it for instance work if you change it to this?

      "~utils/*": ["./utils/*"],

and import it as ~utils/columns.helpers?

I tried it, but it still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants