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

Cannot read properties of undefined (reading 'split') #12572

Closed
2 tasks done
techinfo6789 opened this issue Oct 20, 2022 · 1 comment
Closed
2 tasks done

Cannot read properties of undefined (reading 'split') #12572

techinfo6789 opened this issue Oct 20, 2022 · 1 comment
Labels
needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue

Comments

@techinfo6789
Copy link

Prerequisites

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

Mongoose version

All Versions

Node.js version

16.14.2

MongoDB server version

All Versions

Typescript version (if applicable)

No response

Description

Screenshot 2022-10-20 at 7 17 28 AM

Steps to Reproduce

I'm Using Mongoose in Next Js project
Just install Mongoose and import
Here are my dependencies list

"dependencies": {
"@headlessui/react": "^1.7.3",
"autoprefixer": "^10.1.0",
"axios": "^1.1.3",
"bcryptjs": "^2.4.3",
"js-cookie": "^3.0.1",
"mongoose": "^6.6.5",
"next": "12.1.5",
"next-auth": "^4.3.4",
"postcss": "^8.2.2",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-hook-form": "^7.36.0",
"react-icons": "^4.1.0",
"react-responsive-carousel": "^3.2.23",
"react-slick": "^0.29.0",
"react-toastify": "^6.2.0",
"slick-carousel": "^1.8.1",
"tailwindcss": "^2.0.2",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/react": "^18.0.8"
}

Expected Behavior

I expect it to work properly that's it

@IslandRhythms IslandRhythms added the needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue label Oct 24, 2022
@vkarpov15
Copy link
Collaborator

Try upgrading to Mongoose 6.6.7 or higher. I believe this is a duplicate of #12576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue
Projects
None yet
Development

No branches or pull requests

3 participants