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

Module 'mongoose' has no exported member overwriteMiddlewareResult #14289

Closed
2 tasks done
dserranog1 opened this issue Jan 24, 2024 · 0 comments · Fixed by #14328
Closed
2 tasks done

Module 'mongoose' has no exported member overwriteMiddlewareResult #14289

dserranog1 opened this issue Jan 24, 2024 · 0 comments · Fixed by #14328
Labels
typescript Types or Types-test related issue / Pull Request
Milestone

Comments

@dserranog1
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Hello, I'm seeking for help using overwriteMiddlewareResult. I am using node v.16.20.1 and Typescript 5.1.6. I have searched but nobody has encountered this issue before with this particular function. The function does work, the problem is with Typescript not recognizing it and giving me Module '"mongoose"' has no exported member 'overwriteMiddlewareResult'. Did you mean to use 'import overwriteMiddlewareResult from "mongoose"' instead? . I don't have problems with anything else that's exported from node_modules/mongoose/index.js.
I am not sure if this might be a library bug or something wrongfully configured in my enviroment.

Thanks in advance!

@vkarpov15 vkarpov15 added this to the 8.1.2 milestone Jan 29, 2024
@vkarpov15 vkarpov15 added the typescript Types or Types-test related issue / Pull Request label Jan 29, 2024
@vkarpov15 vkarpov15 modified the milestones: 8.1.2, 8.1.3 Feb 8, 2024
@vkarpov15 vkarpov15 modified the milestones: 8.1.3, 8.1.4 Feb 15, 2024
vkarpov15 added a commit that referenced this issue Mar 4, 2024
types: add overwriteMiddlewareResult and skipMiddlewareFunction to types
@vkarpov15 vkarpov15 modified the milestones: 8.2.1, 8.3 Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants