You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Georgegriff ,
Sorry to bother you, but I'm facing some problems using your plugin. I tried to figure out the problem myself, but I couldn't.
So, I thought to ask for your help:
I used your example for PUPPETEER for shadow-dom and I getting error in the "require":
const { QueryHandler } = require("query-selector-shadow-dom/plugins/puppeteer");
I got this error when I hover the mouse in this line:
"module "C:/Puppeteer/node_modules/query-selector-shadow-dom/plugins/puppeteer/index"
Could not find a declaration file for module 'query-selector-shadow-dom/plugins/puppeteer'. 'C:/Puppeteer/node_modules/query-selector-shadow-dom/plugins/puppeteer/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/query-selector-shadow-dom if it exists or add a new declaration (.d.ts) file containing declare module 'query-selector-shadow-dom/plugins/puppeteer';ts(7016)"
I'm using visual Code. I'm able to see the plugin instaled but even so, I get this annoying error and my query is not woking and I think this error is the problem.
Thank you in advance.
Luciano.
The text was updated successfully, but these errors were encountered:
This looks like a typescript issue, I don't believe there are types declares for this plugin, feel free to contribute some if you want, other than that you should be able to ignore the typescript error somehow
As an aside puppeteer has a built in selector named pierce, they don't document it which is a bit annoying, but puppeteer/puppeteer#6509
Hi @Georgegriff ,
Sorry to bother you, but I'm facing some problems using your plugin. I tried to figure out the problem myself, but I couldn't.
So, I thought to ask for your help:
I used your example for PUPPETEER for shadow-dom and I getting error in the "require":
const { QueryHandler } = require("query-selector-shadow-dom/plugins/puppeteer");
I got this error when I hover the mouse in this line:
"module "C:/Puppeteer/node_modules/query-selector-shadow-dom/plugins/puppeteer/index"
Could not find a declaration file for module 'query-selector-shadow-dom/plugins/puppeteer'. 'C:/Puppeteer/node_modules/query-selector-shadow-dom/plugins/puppeteer/index.js' implicitly has an 'any' type.
Try
npm i --save-dev @types/query-selector-shadow-dom
if it exists or add a new declaration (.d.ts) file containingdeclare module 'query-selector-shadow-dom/plugins/puppeteer';
ts(7016)"I'm using visual Code. I'm able to see the plugin instaled but even so, I get this annoying error and my query is not woking and I think this error is the problem.
Thank you in advance.
Luciano.
The text was updated successfully, but these errors were encountered: