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,
actually I do not know whether this is an issue with this project, puppeteer project, or something else but I Can not use the library puppeteer in a project created from this template.
I am creating a black project from this template. Then installing a puppeteer and changing handler.ts:
importpuppeteerfrom'puppeteer';exportasyncfunctionhandleRequest(request: Request): Promise<Response>{/* const browser = */awaitpuppeteer.launch({});// ... I want here to do some stuffreturnnewResponse(`request method: ${request.method}`)}
When I want to publish it, long stack of errors appears:
$ wrangler publish
Warning: webpack's output filename is being renamed to worker.js because of requirements from the Workers runtime ./node_modules/chownr/chownr.jsModule not found: Error: Can't resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\chownr'
resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\chownr'
Parsed request is a module
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\chownr\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration resolve as module C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\chownr\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\chownr\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js]
@ ./node_modules/chownr/chownr.js 2:11-24
@ ./node_modules/tar-fs/index.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/extract-zip/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip'resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs.js doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\extract-zip\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js]
@ ./node_modules/extract-zip/index.js 3:44-57
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/fd-slicer/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fd-slicer'resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fd-slicer' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fd-slicer\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fd-slicer\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory C:\Users\me\work\node_modules doesn't exist or is not a directory
C:\Users\me\node_modules doesn't exist or is not a directory C:\Users\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fd-slicer\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules][C:\Users\me\work\hejny\node_modules][C:\Users\me\work\node_modules][C:\Users\me\node_modules][C:\Users\node_modules][C:\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js] @ ./node_modules/fd-slicer/index.js 1:9-22 @ ./node_modules/yauzl/index.js @ ./node_modules/extract-zip/index.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js @ ./node_modules/puppeteer/cjs-entry.js @ ./src/handler.ts @ ./src/index.ts./node_modules/mkdirp-classic/index.jsModule not found: Error: Can't resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\mkdirp-classic'
resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\mkdirp-classic'
Parsed request is a module
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\mkdirp-classic\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration resolve as module C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\mkdirp-classic\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\mkdirp-classic\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js]
@ ./node_modules/mkdirp-classic/index.js 2:9-22
@ ./node_modules/tar-fs/index.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/puppeteer/node_modules/locate-path/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\locate-path'resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\locate-path' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\locate-path\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\locate-path\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: ./node_modules)
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: ./node_modules/fs)
no extension
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration .ts C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.ts doesn't exist
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
.tsx
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.tsx doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration .js C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\locate-path\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules][C:\Users\me\work\hejny\node_modules][C:\Users\me\work\node_modules][C:\Users\me\node_modules][C:\Users\node_modules][C:\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.js][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js] @ ./node_modules/puppeteer/node_modules/locate-path/index.js 3:11-24 @ ./node_modules/puppeteer/node_modules/find-up/index.js @ ./node_modules/puppeteer/node_modules/pkg-dir/index.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js @ ./node_modules/puppeteer/cjs-entry.js @ ./src/handler.ts @ ./src/index.ts./node_modules/puppeteer/node_modules/path-exists/index.jsModule not found: Error: Can't resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\path-exists'
resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\path-exists'
Parsed request is a module
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\path-exists\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration resolve as module C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\path-exists\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory C:\Users\me\work\node_modules doesn't exist or is not a directory
C:\Users\me\node_modules doesn't exist or is not a directory C:\Users\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: ./node_modules) using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: ./node_modules/fs) no extension C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs doesn't exist
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
.ts
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.ts doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration .tsx C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.tsx doesn't exist
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
.js
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.js doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\path-exists\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js]
@ ./node_modules/puppeteer/node_modules/path-exists/index.js 2:11-24
@ ./node_modules/puppeteer/node_modules/find-up/index.js
@ ./node_modules/puppeteer/node_modules/pkg-dir/index.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/tar-fs/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tar-fs'resolve 'fs' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tar-fs' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tar-fs\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tar-fs\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory C:\Users\me\work\node_modules doesn't exist or is not a directory
C:\Users\me\node_modules doesn't exist or is not a directory C:\Users\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tar-fs\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules][C:\Users\me\work\hejny\node_modules][C:\Users\me\work\node_modules][C:\Users\me\node_modules][C:\Users\node_modules][C:\node_modules][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\node_modules\fs][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx][C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js][C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js] @ ./node_modules/tar-fs/index.js 5:9-22 @ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js @ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js @ ./node_modules/puppeteer/cjs-entry.js @ ./src/handler.ts @ ./src/index.ts./node_modules/yauzl/index.jsModule not found: Error: Can't resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\yauzl'
resolve 'fs'in'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\yauzl'
Parsed request is a module
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\yauzl\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration resolve as module C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\yauzl\node_modules doesn't exist or is not a directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/fs)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/fs) no extension Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js doesn't exist C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\fs doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\yauzl\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\fs.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\fs.js]
@ ./node_modules/yauzl/index.js 1:9-22
@ ./node_modules/extract-zip/index.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/https-proxy-agent/index.js
Module not found: Error: Can't resolve 'net' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent'resolve 'net' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\package.json (relative path: ./node_modules/net) no extension Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/net)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/net) no extension Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\net doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\net.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\net.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net.js doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\node_modules\net.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\net doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net]
[C:\Users\me\work\hejny\pdf-maker\node_modules\net]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\net.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\net.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\net.js]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\net.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\net.js]
@ ./node_modules/https-proxy-agent/index.js 5:10-24
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/https-proxy-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent'resolve 'tls' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules doesn't exist or is not a directory C:\Users\me\work\hejny\node_modules doesn't exist or is not a directory
C:\Users\me\work\node_modules doesn't exist or is not a directory C:\Users\me\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory
looking formodulesin C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration looking for modules in C:\Users\me\work\hejny\pdf-maker\my-app\node_modules using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration
looking formodulesin C:\Users\me\work\hejny\pdf-maker\node_modules
using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\package.json (relative path: ./node_modules/tls) no extension Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\me\work\hejny\pdf-maker\my-app\package.json (relative path: ./node_modules/tls)
no extension
Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\me\work\hejny\pdf-maker\package.json (relative path: ./node_modules/tls) no extension Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\tls doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\tls.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\node_modules\tls.tsx doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls.js doesn't exist C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls.js doesn't exist
C:\Users\me\work\hejny\pdf-maker\node_modules\tls.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls doesn't exist
as directory
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\node_modules\tls doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\node_modules]
[C:\Users\me\work\hejny\node_modules]
[C:\Users\me\work\node_modules]
[C:\Users\me\node_modules]
[C:\Users\node_modules]
[C:\node_modules]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls]
[C:\Users\me\work\hejny\pdf-maker\node_modules\tls]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls.ts]
[C:\Users\me\work\hejny\pdf-maker\node_modules\tls.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls.tsx]
[C:\Users\me\work\hejny\pdf-maker\node_modules\tls.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\https-proxy-agent\node_modules\tls.js]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\tls.js]
[C:\Users\me\work\hejny\pdf-maker\node_modules\tls.js]
@ ./node_modules/https-proxy-agent/index.js 6:10-24
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
./node_modules/puppeteer/lib/cjs/puppeteer/common/WebSocketTransport.js
Module not found: Error: Can't resolve 'ws' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\lib\cjs\puppeteer\common'resolve 'ws' in 'C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\lib\cjs\puppeteer\common' Parsed request is a module using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: ./lib/cjs/puppeteer/common) aliased from description file C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json with mapping 'ws' to './utils/browser/WebSocket' using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: .) using description file: C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\package.json (relative path: ./utils/browser/WebSocket) no extension C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket doesn't exist
.ts
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket.ts doesn't exist .tsx C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket.tsx doesn't exist
.js
C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket.js doesn't exist as directory C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket doesn't exist
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket.ts]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket.tsx]
[C:\Users\me\work\hejny\pdf-maker\my-app\node_modules\puppeteer\utils\browser\WebSocket.js]
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/WebSocketTransport.js 7:29-42
@ ./node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js
@ ./node_modules/puppeteer/lib/cjs/puppeteer/index.js
@ ./node_modules/puppeteer/cjs-entry.js
@ ./src/handler.ts
@ ./src/index.ts
Error: webpack returned an error. Try configuring `entry`in your webpack config relative to the current working directory, or setting `context = __dirname`in your webpack config.
Thanks for the help.
The text was updated successfully, but these errors were encountered:
hey @hejny — this is an expected error. workers apps can't run node or import node libs because it runs in a webworker context! you won't be able to run puppeteer because it has a number of node dependencies :|
hey @hejny — this is an expected error. workers apps can't run node or import node libs because it runs in a webworker context! you won't be able to run puppeteer because it has a number of node dependencies :|
And is there somehow possible to run Puppeteer (for converting HTML to pdf) on Cloudflare workers, on another stack you provide?
Or it is by design limited to more straightforward tasks.
I love the simplicity of Cloudflare workers and really really don't want to go to too complicated AWS Lambda.
@hejny not at the moment, unfortunately! that being said, if you have a fair amount of validation tasks or anything that happens before the puppeteer task, you can definitely write a workers function to do all of that, and then have it forward the validated request to lambda to do the puppeteer stuff. that way you can use the easier request/response behavior in workers 🤷 up to you!
Hi,
actually I do not know whether this is an issue with this project, puppeteer project, or something else but I Can not use the library puppeteer in a project created from this template.
I am creating a black project from this template. Then installing a puppeteer and changing handler.ts:
When I want to publish it, long stack of errors appears:
Thanks for the help.
The text was updated successfully, but these errors were encountered: