Closed itsikbelson-spotlight closed 1 year ago
You don't need to add puppeteer explicitly as a dependency. You are probably forcing a version that is different from what puppeteer-stream uses. This will cause your project to have 2 versions of Page: one under the main node_modules, and one under node_modules in puppeteer-stream.
npm/yarn will install puppeteer-core version as required by puppeteer-stream if you omit the explicit dependency.
Then use import { Page } from 'puppeteer-core
instead and you will be fine.
I have the following dependencies in my
package.json
I have the following code:
I get an error in the IDE for
page
:In
tsconfig.json
I have:What is the reason for this error?