5t3ph / 5t3ph/eleventy-plugin-social-images
Social images not building
- Vorherrschende Sprache
- JavaScript
- Sterne
- 52
- Forks
- 9
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Running `npm run build` I get following:
```
Starting social images...
(node:11969) UnhandledPromiseRejectionWarning: Error: Cannot find module 'puppeteer-core/lib/cjs/puppeteer/common/Browser'
Require stack:
- /home/bebsico/projects/desnellebij.be/node_modules/chrome-aws-lambda/source/puppeteer/lib/Browser.js
- /home/bebsico/projects/desnellebij.be/node_modules/chrome-aws-lambda/source/index.js
- /home/bebsico/projects/desnellebij.be/node_modules/@11tyrocks/eleventy-plugin-social-images/bin/social-images.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/bebsico/projects/desnellebij.be/node_modules/chrome-aws-lambda/source/puppeteer/lib/Browser.js:6:11)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11969) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```
And I don't have a clue to what to do with that.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
The error indicates a missing module in the puppeteer-core dependency chain. Start by examining the package.json to see the versions of chrome-aws-lambda and puppeteer-core. Check if there's a version mismatch or if the module path changed. Look at the social images script in node_modules/@11tyrocks/eleventy-plugin-social-images/bin/social-images.js to understand how it loads puppeteer. Running npm install or updating dependencies might resolve it, but you need to verify compatibility.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100