Skip to content

Uncaught exception in production #4

@ehmicky

Description

@ehmicky

The following exception is thrown in some builds using this plugins:

🔥 pageerror at /movie/702304: TypeError: Invalid attempt to spread non-iterable instance
at http://localhost:45678/static/js/2.7891d595.chunk.js?__WB_REVISION__=b24ea86ecdcac1ed2fa5:1:78140 (../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js:2:0)
at _nonIterableSpread (../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js:5:59)
at data (Components/MovieInfo/MovieInfo.js:148:31)
at call (../node_modules/regenerator-runtime/runtime.js:45:0)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:264:0)
at _invoke (../node_modules/regenerator-runtime/runtime.js:98:0)
at arg (../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3:0)
️️️💬 console.log at /movie/463870: true
️️️💬 console.log at /movie/463870: true
️️️⚠️ warning at /movie/463870: got 404 HTTP code for https://image.tmdb.org/t/p/w154/null
️️️💬 console.log at /movie/463870: Failed to load resource: the server responded with a status of 404 ()
✅ crawled 79 out of 2227 (/movie/702304)
✅ crawled 81 out of 2227 (/movie/463870)
✅ crawled 160 out of 2227 (/movie/617786)
✅ crawled 221 out of 2227 (/movie/550231)

┌──────────────────────────────────────────────────────┐
│ Plugin "netlify-plugin-prerender-spa" internal error │
└──────────────────────────────────────────────────────┘

Error message
UncaughtException: an exception was thrown but not caught: Error: Cannot write to stream after nil

Plugin details
ID: netlify-plugin-prerender-spa
Version: 1.0.1
Repository: git+https://github.com/shortdiv/netlify-plugin-prerender-spa.git
npm link: https://www.npmjs.com/package/netlify-plugin-prerender-spa
Report issues: https://github.com/shortdiv/netlify-plugin-prerender-spa/issues

Error location
In "onPostBuild" event in npm package "netlify-plugin-prerender-spa"
at push (/opt/build/repo/node_modules/highland/lib/index.js:1492:19)
at /opt/build/repo/node_modules/highland/lib/index.js:2146:13
at Stream.s._send (/opt/build/repo/node_modules/highland/lib/index.js:1549:9)
at Stream.write (/opt/build/repo/node_modules/highland/lib/index.js:1650:18)
at Stream._send (/opt/build/repo/node_modules/highland/lib/index.js:974:26)
at Stream._readFromBuffer (/opt/build/repo/node_modules/highland/lib/index.js:1112:18)
at Stream._resume (/opt/build/repo/node_modules/highland/lib/index.js:1164:14)
at Stream._checkBackPressure (/opt/build/repo/node_modules/highland/lib/index.js:1091:10)
at Stream._resume (/opt/build/repo/node_modules/highland/lib/index.js:1172:33)
at Stream._checkBackPressure (/opt/build/repo/node_modules/highland/lib/index.js:1091:10)

Do you know what the error might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions