Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Missing pages-manifest.json #136

Closed
ehmicky opened this issue Jan 8, 2021 · 1 comment · Fixed by #147
Closed

Missing pages-manifest.json #136

ehmicky opened this issue Jan 8, 2021 · 1 comment · Fixed by #147
Labels
type: bug code to address defects in shipped code

Comments

@ehmicky
Copy link
Contributor

ehmicky commented Jan 8, 2021

Some sites seem to be missing a pages-manifest.json, which makes the build fail.

Link to Bugsnag error.

Build logs:

9:51:21 PM: ────────────────────────────────────────────────────────────────
9:51:21 PM:   3. onBuild command from @netlify/plugin-nextjs                
9:51:21 PM: ────────────────────────────────────────────────────────────────
9:51:21 PM: ​
9:51:21 PM: ** Running Next on Netlify package **
9:51:21 PM: 🚀 Next on Netlify 🚀
9:51:21 PM: 🌍️ Copying public/ folder to /opt/build/repo
9:51:21 PM: 💼 Copying static NextJS assets to /opt/build/repo
9:51:21 PM: ​
9:51:21 PM: ────────────────────────────────────────────────────────────────
9:51:21 PM:   Plugin "@netlify/plugin-nextjs" internal error                
9:51:21 PM: ────────────────────────────────────────────────────────────────
9:51:21 PM: ​
9:51:21 PM:   Error message
9:51:21 PM:   Error: .next/serverless/pages-manifest.json: ENOENT: no such file or directory, open '.next/serverless/pages-manifest.json'
9:51:21 PM: ​
9:51:21 PM:   Plugin details
9:51:21 PM:   Package:        @netlify/plugin-nextjs
9:51:21 PM:   Version:        1.0.3
9:51:21 PM:   Repository:     git+https://github.com/netlify/netlify-plugin-nextjs.git
9:51:21 PM:   npm link:       https://www.npmjs.com/package/@netlify/plugin-nextjs
9:51:21 PM:   Report issues:  https://github.com/netlify/netlify-plugin-nextjs/issues
9:51:21 PM: ​
9:51:21 PM:   Error location
9:51:21 PM:   In "onBuild" event in "@netlify/plugin-nextjs" from Netlify app
9:51:21 PM:       at Object.openSync (fs.js:458:3)
9:51:21 PM:       at Object.readFileSync (fs.js:360:35)
9:51:21 PM:       at readFileSync (/opt/build/repo/.netlify/plugins/node_modules/jsonfile/index.js:50:22)
9:51:21 PM:       at getPagesManifest (/opt/build/repo/.netlify/plugins/node_modules/next-on-netlify/lib/helpers/getPagesManifest.js:6:20)
9:51:21 PM:       at Object.<anonymous> (/opt/build/repo/.netlify/plugins/node_modules/next-on-netlify/lib/pages/api/pages.js:8:23)
9:51:21 PM:       at Module._compile (internal/modules/cjs/loader.js:1133:30)
9:51:21 PM:       at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
9:51:21 PM:       at Module.load (internal/modules/cjs/loader.js:977:32)
9:51:21 PM:       at Function.Module._load (internal/modules/cjs/loader.js:877:14)
9:51:21 PM:       at Module.require (internal/modules/cjs/loader.js:1019:19)

Example git commit

@ehmicky ehmicky added the type: bug code to address defects in shipped code label Jan 8, 2021
@lindsaylevine
Copy link
Contributor

odd. thanks for reporting!!!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants