-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't make it run locally following the readme guide. #87
Comments
@dassiorleando: Welcome to this project! It looks like some issue with custom images that you are using. Could you please start out even simpler, by not changing the env variables (in this case the example project is generated):
Let's see if that works and we'll take it from there. |
@styxlab, I had the same error but once switched to Node 12.16.1 it worked fine. |
Interesting, what node version were you using before? |
@styxlab I was using NodeJS v10.19.0. But still, my own Ghost installation that runs on Heroku using ghost-on-heroku doesn't work. |
Node requirement comes from
|
It's strange and maybe a local problem, I'm not sure yet. I'm now using Node14 on my PC, but yarn dev doesn't work while yarn build compiles successfully. The yarn dev error that I have is on the App itself, using Chrome Inspector tool (debugger) I'm able to see this: Failed to load resource: the server responded with a status of 404 (Not Found) |
I have found a solution, I'm not sure about what's happening behind but once deleted the .next folder it worked fine. |
Glad you found a solution. |
@styxlab Thank you for your assistance with this, you helped me clearing some of my doubts. |
Hi @styxlab,
Thank you for this sample that merges NextJS and Ghost.
I just tried it but I couldn't succeed in making it work, I have cloned the repo, defined the env variables and hit yarn then yarn dev.
Here's the output: TypeError: sizes.matchAll(...) is not a function or its return value is not iterable
I'm attaching the full error log from the console:
TypeError: sizes.matchAll(...) is not a function or its return value is not iterable at getWidths (webpack-internal:///./node_modules/next/dist/client/image.js:45:36) at generateImgAttrs (webpack-internal:///./node_modules/next/dist/client/image.js:105:7) at Image (webpack-internal:///./node_modules/next/dist/client/image.js:355:169) at processChild (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3353:14) at resolve (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3270:5) at ReactDOMServerRenderer.render (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3753:22) at ReactDOMServerRenderer.read (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3690:29) at renderToString (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:4298:27) at Object.renderPage (/projet/node_modules/next/dist/next-server/server/render.js:54:854) at Function.getInitialProps (webpack-internal:///./node_modules/next/dist/pages/_document.js:128:19) at Function.getInitialProps (webpack-internal:///./pages/_document.tsx:26:24) at loadGetInitialProps (/projet/node_modules/next/dist/next-server/lib/utils.js:5:101) at renderToHTML (/projet/node_modules/next/dist/next-server/server/render.js:54:1145) at process._tickCallback (internal/process/next_tick.js:68:7)
Thanks in advance for your reply.
The text was updated successfully, but these errors were encountered: