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

_app.js not work #4

Open
farhadarjmandf opened this issue Jan 21, 2020 · 6 comments
Open

_app.js not work #4

farhadarjmandf opened this issue Jan 21, 2020 · 6 comments

Comments

@farhadarjmandf
Copy link

i created _app.js in /pages but not work, i dont know why

@leob
Copy link
Owner

leob commented Jan 21, 2020

What do you mean by "not work", what's happening, you get an HTTP 500 or what? What do the logs (or console.log) show? What's inside '_app', can you show me the code? And why do you name your page "_app", that seems a weird name for a page ... what happens if you just call it "hello" or something?

@farhadarjmandf
Copy link
Author

Next.js uses the App component to initialize pages.
To override, create the ./pages/_app.js file and override the App class
but in your source is not work

https://stackoverflow.com/questions/51040669/next-js-use-of-app-js-and-document-js

@leob
Copy link
Owner

leob commented Jan 22, 2020

I think _app.js is a new feature that was introduced in a newer release of next.js. I'm using version 5.0 and next.js is already at version 9.2, so that explains why it doesn't work. When I have time I'll try to upgrade to the newest next.js (and I'll attempt to upgrade feathers.js as well).

@leob
Copy link
Owner

leob commented Mar 31, 2020

@farhadarjmandf I've upgraded next.js from version 5 to version 9, please retry if you like.

@ozan-altinbas-osf
Copy link

Hey @leob ,
I am sorry to say but, your repo is unfortunately not working. It throws No Page Context. FYI.
Thanks,

@leob
Copy link
Owner

leob commented Apr 19, 2020

Hey @leob ,
I am sorry to say but, your repo is unfortunately not working. It throws No Page Context. FYI.
Thanks,

@ozan-altinbas-osf Thanks for bringing this to my attention, I will look at it. Is "No Page Context" the literal text of the exception, and where do you see that, server side, client side?

@github-staff github-staff deleted a comment from knofte Mar 23, 2024
@github-staff github-staff deleted a comment from knofte Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants