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

Can't find declaration file in 0.5.0 #40

Closed
aydrian opened this issue Nov 23, 2023 · 8 comments
Closed

Can't find declaration file in 0.5.0 #40

aydrian opened this issue Nov 23, 2023 · 8 comments

Comments

@aydrian
Copy link

aydrian commented Nov 23, 2023

Receiving the following TypeScript error after upgrading to 0.5.0

Could not find a declaration file for module 'remix-params-helper'. 

I am using Remix 2.0 with Vite and ESM modules.
If I go back to 0.4.10, the problem goes away.

@kiliman
Copy link
Owner

kiliman commented Nov 23, 2023

That's odd. I tested on both Remix v1.9+ and v2.2 with Vite.

I'll try again with a fresh project.

@kiliman
Copy link
Owner

kiliman commented Nov 24, 2023

I created a test repo using Vite, and it's working fine.

https://github.com/kiliman/remix-vite-params

Open in StackBlitz

@aydrian
Copy link
Author

aydrian commented Nov 24, 2023

Let me see if there's any other differences using your test repo and try again.

@aydrian
Copy link
Author

aydrian commented Nov 24, 2023

Weird. I'm still seeing the type error and I don't see anything different. tsconfig.json looks fine. The vite.config looks fine. Here's a route where I'm using it: https://github.com/aydrian/itsaydrian-stream-remix/blob/main/app/routes/scenes%2B/me%2B/_frame%2B/chatting%2B/%24num.tsx

@kiliman
Copy link
Owner

kiliman commented Nov 24, 2023

Ah, I now see what you mean. It's a VS Code warning. I thought you were seeing an error during build or runtime.

image

I'll take a look. Thanks.

@aydrian
Copy link
Author

aydrian commented Nov 24, 2023

Sorry. It also shows up when I run npm run typecheck

@kiliman
Copy link
Owner

kiliman commented Nov 24, 2023

Fixed in v0.5.1

@nicolas-besnard
Copy link

I have the same issue (with version 0.5.1) using the indie-stack with remix 1.16.0. Same as Aydrian, it works well in 0.4.1

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

3 participants