Skip to content

3.0.5 Error [ERR_MODULE_NOT_FOUND]: Cannot find package #110

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

Closed
vfiruz97 opened this issue Aug 7, 2024 · 7 comments
Closed

3.0.5 Error [ERR_MODULE_NOT_FOUND]: Cannot find package #110

vfiruz97 opened this issue Aug 7, 2024 · 7 comments

Comments

@vfiruz97
Copy link

vfiruz97 commented Aug 7, 2024

I'm submitting this issue as I got in terrible after upgrading this package from 3.0.3 to .3.0.5

import { PuppeteerScreenRecorder } from "puppeteer-screen-recorder";
node:internal/errors:484
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '/var/www/html/node_modules/puppeteer-screen-recorder/' imported from /var/www/html/puppeteer_script.js
    at new NodeError (node:internal/errors:393:5)
    at legacyMainResolve (node:internal/modules/esm/resolve:231:9)
    at packageResolve (node:internal/modules/esm/resolve:781:14)
    at moduleResolve (node:internal/modules/esm/resolve:843:20)
    at defaultResolve (node:internal/modules/esm/resolve:1058:11)
    at nextResolve (node:internal/modules/esm/loader:161:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:829:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:412:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v19.0.0

I have to notice that with 3.0.5 version when I run npm install, there were few files in the node_modules/puppeteer-screen-recorder/
CHANGELOG.md
LICENSE
README.md
package.json

but it looks for build folder there.

help me please get what is the problem

@mrprkr
Copy link

mrprkr commented Aug 13, 2024

Same for us, this failed typescript compile

@GLabat
Copy link

GLabat commented Aug 16, 2024

Same here, workaround is to force [email protected] on install.

@caprageon
Copy link

Same here in 3.0.5, missing build folder in this version.

@wanderwayward
Copy link

Same issue here, and yes downgradeing to 3.0.3 works. But trying to bring a bit more visibility.

@milansoliya4210
Copy link

milansoliya4210 commented Sep 28, 2024

same here not working with 3.0.5

@sebitoelcheater
Copy link

same!

@prasanaworld
Copy link
Owner

Fixed: #113 (comment). Closing because of duplicate

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

8 participants