Skip to content
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

Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error TypeError: Cannot read properties of null (reading '0') #42922

Closed
1 task done
mengyi-dev opened this issue Nov 15, 2022 · 3 comments
Labels
examples Issue/PR related to examples please add a complete reproduction The issue lacks information for further investigation

Comments

@mengyi-dev
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

image

Which example does this report relate to?

Nextjs with WordPress

What browser are you using? (if relevant)

Chrome

How are you deploying your application? (if relevant)

Localhost

Describe the Bug

When I try to use WP_API_URL in localhost doesn't work, but when I use WP_API_URL on cloud instance it worked

Expected Behavior

work

To Reproduce

image

@mengyi-dev mengyi-dev added the examples Issue/PR related to examples label Nov 15, 2022
@balazsorban44
Copy link
Member

balazsorban44 commented Nov 15, 2022

Hi, assuming you refer to the cms-wordpress example, Make sure you spell the environment variable correctly. It's WORDPRESS_API_URL, not WP_API_URL.

It might also be related to #36691, although the error there is slightly different. Could you maybe attach a full reproduction so we can verify?

@balazsorban44 balazsorban44 added the please add a complete reproduction The issue lacks information for further investigation label Nov 15, 2022
@balazsorban44
Copy link
Member

This issue has been automatically closed because it received no activity for a month and had no reproduction to investigate. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples please add a complete reproduction The issue lacks information for further investigation
Projects
None yet
Development

No branches or pull requests

2 participants