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

Is not a function: key.split is not a function #6

Closed
s-pl opened this issue Jul 8, 2021 · 1 comment
Closed

Is not a function: key.split is not a function #6

s-pl opened this issue Jul 8, 2021 · 1 comment

Comments

@s-pl
Copy link

s-pl commented Jul 8, 2021

Im getting this error while im trying to run my project on my virtual machine:

TypeError: key.split is not a function
    at setNestedProperty (C:\Users\Sapol\Desktop\CliGame\node_modules\easy-json-database\index.js:4:28)
    at EasyJsonDB.set (C:\Users\Sapol\Desktop\CliGame\node_modules\easy-json-database\index.js:129:9)
    at C:\Users\Sapol\Desktop\CliGame\index.js:22:6
    at Layer.handle [as handle_request] (C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\layer.js:95:5)
    at next (C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\route.js:137:13)
    at Route.dispatch (C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\layer.js:95:5)
    at C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\index.js:281:22
    at Function.process_params (C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\index.js:335:12)
    at next (C:\Users\Sapol\Desktop\CliGame\node_modules\express\lib\router\index.js:275:10)

You can see my code here: https://hastebin.com/yezopozehu.js

@s-pl
Copy link
Author

s-pl commented Jul 12, 2021

As the developer is not solving my problem, if you are getting this problem just do this:
npm uninstall easy-json-database npm install easy-json-database@1.4.0
This uninstall´s the package and install´s it with the 1.4.0 version.

@s-pl s-pl closed this as completed Jul 12, 2021
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

1 participant