Skip to content

Conversation

@Gehbt
Copy link
Contributor

@Gehbt Gehbt commented Feb 17, 2024

Relate commit #116

When use with typescript in compilerOptions: "module": "Node16" | "Nodenext", it will call the namespace fastifyCaching, that caused
image
and should use
image

I don`t know why those tests-suits fail.

Checklist

Reproduction

@mcollina
Copy link
Member

What is this fixing?

@Gehbt
Copy link
Contributor Author

Gehbt commented Feb 18, 2024

What is this fixing?

I added the informations.

@gurgunday
Copy link
Member

Can you please add a test?

We use tsd

@Gehbt
Copy link
Contributor Author

Gehbt commented Feb 18, 2024

Can you please add a test?

We use tsd

I cannot provide the test, but I can give a minimal reproduction.

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this change fixes the issue you're having

In fact, there seems to be no issue according to tests, why is this passing?

@Gehbt
Copy link
Contributor Author

Gehbt commented Mar 4, 2024

Do you review the Reproduction? I think I have revealed it: there is using "type": "commonjs", if changed to "type": "module" it will break. May we really ought to wait a guy in NodeNext?

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see now, this indeed fixes the problem

Thanks

@gurgunday
Copy link
Member

Not sure how we could test this... but reproducing is possible

@gurgunday gurgunday requested a review from Uzlopak March 4, 2024 16:49
@marcoreni
Copy link

any chance of getting this merged?

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 918a06d into fastify:master Jul 1, 2024
@Gehbt Gehbt deleted the patch-1 branch August 19, 2024 13:04
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

Successfully merging this pull request may close these issues.

4 participants