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

context.isClient and context.isServer deprecation warnings when not used #2527

Closed
joealden opened this issue Jan 8, 2018 · 6 comments
Closed
Labels

Comments

@joealden
Copy link

joealden commented Jan 8, 2018

I have just upgrade nuxt to 1.0.0 in one of my projects and I am getting the following warnings every time a page is server side rendered (Both in the server console and on the client):

context.isClient has been deprecated, please use process.client instead.
context.isServer has been deprecated, please use process.server instead.

From my understanding from these release notes,
(https://github.com/nuxt/nuxt.js/releases/tag/v1.0.0) I can still use the context.isClient property inside build.extend(), as this is said:

We also deprecated dev property inside build.extend() in flavour of isDev.

(Little side note, this should say 'in favour' instead of 'in flavour')

If what I think is correct, then I am not using these deprecated APIs in my code, but the warning as still appearing.

Could these warnings maybe be coming from a nuxt module that is still using the deprecated API? (Like what happens when a package you depend on is not using babel-present-env)

This question is available on Nuxt.js community (#c2195)
@joealden
Copy link
Author

joealden commented Jan 8, 2018

I forgot to add, this is the repo of the codebase: https://github.com/joealden/corum

@Evild67
Copy link

Evild67 commented Jan 8, 2018

Update your nuxt/apollo package to 3.0.1 :) ! Deprecation fix was just merged

@dohomi
Copy link

dohomi commented Jan 8, 2018

true :-)

@gangsthub
Copy link
Contributor

@joealden
Copy link
Author

joealden commented Jan 8, 2018

@Evild67 Thanks! That has fixed it!

@lock
Copy link

lock bot commented Nov 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 2, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants