Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Fails to build on Gatsby 4 #51

Open
a-haan opened this issue Dec 20, 2021 · 3 comments
Open

Fails to build on Gatsby 4 #51

a-haan opened this issue Dec 20, 2021 · 3 comments

Comments

@a-haan
Copy link

a-haan commented Dec 20, 2021

Fails to build on Gatsby 4

`
Cannot read property 'type' of undefined

TypeError: Cannot read property 'type' of undefined

  • public.js:891 Object.actions.touchNode
    [a-haan-gatsby]/[gatsby]/src/redux/actions/public.js:891:41

  • call-deferred-api.ts:17 callRealApi
    [a-haan-gatsby]/[gatsby]/src/utils/call-deferred-api.ts:17:20

  • actions.ts:26 callApi
    [a-haan-gatsby]/[gatsby]/src/state-machines/develop/actions.ts:26:6

  • interpreter.js:767 Interpreter.exec
    [a-haan-gatsby]/[xstate]/lib/interpreter.js:767:16

  • interpreter.js:204 Interpreter.execute
    [a-haan-gatsby]/[xstate]/lib/interpreter.js:204:14

  • interpreter.js:230 Interpreter.update
    [a-haan-gatsby]/[xstate]/lib/interpreter.js:230:12

  • interpreter.js:110
    [a-haan-gatsby]/[xstate]/lib/interpreter.js:110:15

  • scheduler.js:69 Scheduler.process
    [a-haan-gatsby]/[xstate]/lib/scheduler.js:69:7

  • scheduler.js:48 Scheduler.schedule
    [a-haan-gatsby]/[xstate]/lib/scheduler.js:48:10

  • interpreter.js:104 Interpreter.send
    [a-haan-gatsby]/[xstate]/lib/interpreter.js:104:23

  • interpreter.js:1105 callback
    [a-haan-gatsby]/[xstate]/lib/interpreter.js:1105:13

  • listen-for-mutations.ts:6 callback
    [a-haan-gatsby]/[gatsby]/src/services/listen-for-mutations.ts:6:5

  • mett.ts:44 forEach
    [a-haan-gatsby]/[gatsby]/src/utils/mett.ts:44:11

  • Set.forEach

  • mett.ts:43 Object.emit
    [a-haan-gatsby]/[gatsby]/src/utils/mett.ts:43:17

  • api-runner-node.js:104
    [a-haan-gatsby]/[gatsby]/src/utils/api-runner-node.js:104:20
    `

@a-haan a-haan changed the title migrating to Gatsby v4 Fails to build on Gatsby 4 Dec 26, 2021
@wahidshafique
Copy link

I'm getting the same error

@a-haan
Copy link
Author

a-haan commented Feb 24, 2022

Hi @wahidshafique, I switched to https://www.npmjs.com/package/gatsby-remark-images-remote and haven't looked back!

@wahidshafique
Copy link

@a-haan thank you so much! You really unblocked me on this 🥇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants