Nuxt.js: context.isClient and context.isServer deprecation warnings when not used

Created on 8 Jan 2018  路  6Comments  路  Source: nuxt/nuxt.js

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)

Most helpful comment

@Evild67 Thanks! That has fixed it!

All 6 comments

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

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

true :-)

@Evild67 Thanks! That has fixed it!

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msudgh picture msudgh  路  3Comments

mikekidder picture mikekidder  路  3Comments

bimohxh picture bimohxh  路  3Comments

vadimsg picture vadimsg  路  3Comments

maicong picture maicong  路  3Comments