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

Uncaught TypeError: Cannot read property '_handle' of undefined #1280

Closed
vahost opened this issue Feb 11, 2020 · 7 comments
Closed

Uncaught TypeError: Cannot read property '_handle' of undefined #1280

vahost opened this issue Feb 11, 2020 · 7 comments

Comments

@vahost
Copy link

vahost commented Feb 11, 2020

I've been trying to install your plugin in Windows 10 without success within a Quasar/Vue setup.

After playing around with it a bit, I've commented everything out except the first line:

var sqlite3 = require('sqlite3').verbose();

In Inspect I'm getting the following error:

Uncaught TypeError: Cannot read property '_handle' of undefined
at eval (index.js?2f37:3)
at Array.forEach ()
at module.exports (index.js?2f37:2)
at Object.eval (log.js?8c68:11)
at eval (log.js:311)
at Object../node_modules/npmlog/log.js (vendor.js:11168)
at webpack_require (app.js:791)
at fn (app.js:151)
at Object.eval (node-pre-gyp.js?ace6:16)
at eval (node-pre-gyp.js:205)

Additionally, I'm getting a warning when I start up my dev server:

warning in ./node_modules/sqlite3/lib/sqlite3.js

Critical dependency: the request of a dependency is an expression

I'm also getting warnings about node-pre-gyp after that, but I'm pretty sure they all stem from the above warning. I do have node-pre-gyp installed with the latest version.

@kewde
Copy link
Collaborator

kewde commented Feb 25, 2020

It's likely just a webpack problem, we have an issue for this.
#1268

@doamatto
Copy link

@kewde Since #1268 was merged, this could be closed, no?

@vahost vahost closed this as completed Jun 26, 2020
@cattox
Copy link

cattox commented Dec 5, 2020

@doamatto or @vahost I just stepped on this same issue. Can you state exactly what I have to do to solve it? Exclude some dependency on webpack? I'm currently not using it.. do I need to?

@doamatto
Copy link

doamatto commented Dec 5, 2020

@doamatto or @vahost I just stepped on this same issue. Can you state exactly what I have to do to solve it? Exclude some dependency on webpack? I'm currently not using it.. do I need to?

You shoyld really make a new issue, but make sure you're using the latest version

@cattox
Copy link

cattox commented Dec 5, 2020

Thank you for the reply. I didn't want to add noise to the project. I believe I just need some information on a already solved issue (but I can create a new issue if you prefer). I'm using 5.0.0. This is the latest version isn't it?

@BeknazarBektashov
Copy link

BeknazarBektashov commented Dec 28, 2020

Thank you for the reply. I didn't want to add noise to the project. I believe I just need some information on a already solved issue (but I can create a new issue if you prefer). I'm using 5.0.0. This is the latest version isn't it?

Hello @cattox, have you solved this problem? If so, how? I read all the comments above, but I still don't understand how to solve this problem

@cattox
Copy link

cattox commented Dec 31, 2020

Thank you for the reply. I didn't want to add noise to the project. I believe I just need some information on a already solved issue (but I can create a new issue if you prefer). I'm using 5.0.0. This is the latest version isn't it?

Hello @cattox, have you solved this problem? If so, how? I read all the comments above, but I still don't understand how to solve this problem

Hi Beknazar2003. I was using Node 15 which is not supported by sqlite. Moved to Node 14, and it seems that it solved the problem, but I didn't have the time to check it properly.

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

5 participants