Taiko: DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead

Created on 21 Feb 2019  路  6Comments  路  Source: getgauge/taiko

Expected behavior

Taiko should run the tests

Actual behavior

Throws below warning
(node:1397) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead

and does not execute any test.

Code files: Archive.zip

screen shot 2019-02-21 at 11 43 07 pm

Steps to reproduce

spec and step-implementation files have been attached.

  1. extract the files from Archive.zip
  2. run the command "npm test" to run tests

Versions

node version : v10.15.0
taiko Version: 0.5.0 (Chromium:73.0.3638.0)

OS: macOS High Sierra

Most helpful comment

How was this resolved?

All 6 comments

Resolved.

How was this resolved?

How was resolved and share us steps.

@Kumaresan-Hexaware DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead should not affect the gauge specs execution. If this is happening then there is some other issue. Can you please share more details with us.

  • run gauge -v on your terminal and share the output with us
  • which os your working on
  • node and taiko version
  • Were you able to replicate this issue with a new Gauge js project. If not is it possible for you to share the sample project.

@negiDharmendra the error warning message happens on node 10+ in the following

$ gauge init js_simple
$ npm test

This pull request uses the new grpc load mechanism https://github.com/getgauge/gauge-js/pull/301 and stops showing the deprecation warning.

Edit:
This does not fail tests tests as it is just a warning message

This is fixed in the latest release 2.3.8 of gauge js plugin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ceisele-r picture ceisele-r  路  8Comments

ariesZhou picture ariesZhou  路  5Comments

chris-kobrzak picture chris-kobrzak  路  9Comments

rmallof picture rmallof  路  8Comments

sguptatw picture sguptatw  路  7Comments