You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, so I have a [id].js page in /pages/ of my next app, everytime some access the site: www.example.com/4532 , i check the id via "query" in address and make a SSR request to get data for this page, but then I do test of speed and the default Lighthouse test from google I get error on my server like this:
{ id: 'asset-manifest.json' }
TypeError: Cannot read property '0' of null
at Object.module.exports.x+Ix.PageId.getInitialProps (/Users/Valnexus/Desktop/example/.next/server/pages/[id].js:3806:159)
....
{ id: 'bootstrap-grid.min.css.map' }
TypeError: Cannot read property '0' of null
at Object.module.exports.x+Ix.Obituary.getInitialProps (/Users/Valnexus/Desktop/example/.next/server/pages/[id].js:3806:159)
...
It was the same error before showing another "manifest" file, so I created that one, now it's showing 'asset-manifest.json' , 'bootstrap-grid.min.css.map' in the Query of ID, and I am making the test on HOMEPAGE like the "/" address.
I even tried doing it /pages/[id]/index.js - still dose the same result.
I think it's because it's a [custom] page in the root folder, is there another way of doing it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, so I have a [id].js page in /pages/ of my next app, everytime some access the site: www.example.com/4532 , i check the id via "query" in address and make a SSR request to get data for this page, but then I do test of speed and the default Lighthouse test from google I get error on my server like this:
{ id: 'asset-manifest.json' }
TypeError: Cannot read property '0' of null
at Object.module.exports.x+Ix.PageId.getInitialProps (/Users/Valnexus/Desktop/example/.next/server/pages/[id].js:3806:159)
....
{ id: 'bootstrap-grid.min.css.map' }
TypeError: Cannot read property '0' of null
at Object.module.exports.x+Ix.Obituary.getInitialProps (/Users/Valnexus/Desktop/example/.next/server/pages/[id].js:3806:159)
...
It was the same error before showing another "manifest" file, so I created that one, now it's showing 'asset-manifest.json' , 'bootstrap-grid.min.css.map' in the Query of ID, and I am making the test on HOMEPAGE like the "/" address.
I even tried doing it /pages/[id]/index.js - still dose the same result.
I think it's because it's a [custom] page in the root folder, is there another way of doing it?
Beta Was this translation helpful? Give feedback.
All reactions