Error: function () { [native code] } could not be cloned.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- github-actions, javascript
Rechercherichtung
Beginne damit, den Netlify Deploy mit netlify-plugin-github-dispatch Version 1.1.0 zu reproduzieren, und untersuche den im Log gezeigten onSuccess-Ereignispfad, insbesondere die Plugin-Konfiguration aus netlify.toml und package.json. Verfolge die Funktion, die über die IPC-Kommunikation des Child-Prozesses von Netlify Build gesendet wird, und überprüfe anschließend, dass der Deploy ohne den Cloning-Fehler abgeschlossen wird und den konfigurierten GitHub Actions-Workflow auslöst.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi @bahmutov this plugin is exactly what we need.
The first error I came across after following your steps was:
8:32:52 AM: Configuration error
8:32:52 AM: ────────────────────────────────────────────────────────────────
8:32:52 AM:
8:32:52 AM: Error message
8:32:52 AM: Plugins must be installed either in the Netlify App or in "package.json".
8:32:52 AM: Please run "npm install -D netlify-plugin-github-dispatch" or "yarn add -D netlify-plugin-github-dispatch".
So I did as the message suggests and ran npm install -D netlify-plugin-github-dispatch.
Then I can get further and the Netlify Deploy log returns this message from this plugin:

But the logs then show a second error, which I'm stuck on is:
8:35:32 AM: Plugin "netlify-plugin-github-dispatch" internal error
8:35:32 AM: ────────────────────────────────────────────────────────────────
8:35:32 AM:
8:35:32 AM: Error message
8:35:32 AM: Error: function () { [native code] } could not be cloned.
8:35:32 AM:
8:35:32 AM: Plugin details
8:35:32 AM: Package: netlify-plugin-github-dispatch
8:35:32 AM: Version: 1.1.0
8:35:32 AM: Repository: git+https://github.com/bahmutov/netlify-plugin-github-dispatch.git
8:35:32 AM: npm link: https://www.npmjs.com/package/netlify-plugin-github-dispatch
8:35:32 AM: Report issues: https://github.com/bahmutov/netlify-plugin-github-dispatch/issues
8:35:32 AM:
8:35:32 AM: Error location
8:35:32 AM: In "onSuccess" event in "netlify-plugin-github-dispatch" from netlify.toml and package.json
8:35:32 AM: at writeChannelMessage (internal/child_process/serialization.js:82:9)
8:35:32 AM: at process.target._send (internal/child_process.js:814:17)
8:35:32 AM: at process.target.send (internal/child_process.js:712:19)
8:35:32 AM: at internal/util.js:340:30
8:35:32 AM: at new Promise (<anonymous>)
8:35:32 AM: at bound (internal/util.js:339:12)
8:35:32 AM: at sendEventToParent (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins/ipc.js:123:46)
8:35:32 AM: at handleError (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins/child/error.js:13:9)
8:35:32 AM: at handleEvent (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins/child/main.js:45:11)
8:35:32 AM: at processTicksAndRejections (internal/process/task_queues.js:95:5)
8:35:32 AM:
8:35:32 AM: Resolved config
8:35:32 AM: build:
8:35:32 AM: base: /opt/build/repo/packages/website
8:35:32 AM: command: npm run deploy
8:35:32 AM: commandOrigin: ui
8:35:32 AM: environment:
8:35:32 AM: - GITHUB_TOKEN
8:35:32 AM: - NODE_VERSION
8:35:32 AM: - SANITY_DATASET
8:35:32 AM: - SANITY_PROJECTID
8:35:32 AM: - SANITY_TOKEN
8:35:32 AM: publish: /opt/build/repo/packages/website/fakedist
8:35:32 AM: publishOrigin: ui
8:35:32 AM: functionsDirectory: /opt/build/repo/packages/website/functions
8:35:32 AM: plugins:
8:35:32 AM: - inputs: {}
8:35:32 AM: origin: config
8:35:32 AM: package: netlify-plugin-github-dispatch
8:35:32 AM: redirects:
8:35:32 AM: - force: true
8:35:32 AM: from: /pdf/*
status: 200
to: /.netlify/functions/file/:splat
After this the Netlify Build Completes but my GH Actions workflow is not triggered.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 6
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus bahmutov/netlify-plugin-github-dispatch
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
bahmutov/netlify-plugin-github-dispatch#4 · 1 Reaktion ·
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Alle Issues in bahmutov/netlify-plugin-github-dispatch
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
NaturalIntelligence/fast-xml-parser#888 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug callouts regression revealjs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
quarto-dev/quarto-cli#15014 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Remove: Fox Deportes SDOffencheck:passed feeds:remove
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
iptv-org/database#37176 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 9 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
hawk-digital-environments/HAWKI#443 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
modelcontextprotocol/python-sdk#3662 ·
Maintainer antworten meist innerhalb von 1 Tag