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

Should be able to run js project without package.json #176

Closed
sswaroopgupta opened this issue Dec 3, 2018 · 6 comments
Closed

Should be able to run js project without package.json #176

sswaroopgupta opened this issue Dec 3, 2018 · 6 comments
Assignees

Comments

@sswaroopgupta
Copy link
Contributor

Expected behavior
Should be able to run js project without package.json

Actual behavior
Getting the error

(node:33976) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
{ Error: ENOENT: no such file or directory, open '...\js_new_proj1\package.json'
    at Object.fs.openSync (fs.js:545:3)
    at Object.fs.readFileSync (fs.js:451:33)
    at getProjectInfo (...\AppData\Roaming\gauge\plugins\js\2.3.4.nightly-2018-11-29\src\tracker.js:14:17)
    at getPostData (...\AppData\Roaming\gauge\plugins\js\2.3.4.nightly-2018-11-29\src\tracker.js:19:12)
    at send (...\AppData\Roaming\gauge\plugins\js\2.3.4.nightly-2018-11-29\src\tracker.js:48:14)
    at Object.trackConsole (...\AppData\Roaming\gauge\plugins\js\2.3.4.nightly-2018-11-29\src\tracker.js:61:38)
    at ...\AppData\Roaming\gauge\plugins\js\2.3.4.nightly-2018-11-29\src\gauge.js:41:15
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: '...\\js_new_proj1\\package.json' }

Steps to replicate

  • Ensure network is disconnected
  • Create a gauge-js project gauge init js
  • Run gauge gauge run

Observe the above error occurs

Version

Gauge version: 1.0.4.nightly-2018-11-26
Commit Hash: f6cb60c

Plugins
-------
js (2.3.4.nightly-2018-11-29)
@shubhamsc
Copy link
Contributor

@sguptatw I'm unable to replicate above issue. I followed the same steps.
It works fine for me with a deprecation warning.
(node:33976) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead

We are using taiko as dependency to running js test. For that we need package.json file to install taiko locally.

@sswaroopgupta
Copy link
Contributor Author

@shubhamsc Did you Ensure network is disconnected? 'Cause with this it does not initiate a taiko project. It is just a js vanilla project and that is when the issue is occurring.

@shubhamsc
Copy link
Contributor

@sguptatw Sorry my bad. Network is not disconnected.
But still i'm not seeing any error. it's working as expected.

@sswaroopgupta
Copy link
Contributor Author

@shubhamsc I have observed this on Windows. Can you check on Windows please.

@shubhamsc
Copy link
Contributor

@sguptatw
yeah, It's working fine with Mac. but Windows it is replicable.

@gaugebot
Copy link

gaugebot bot commented Dec 17, 2018

The fix should be available in nightly >= 17-12-2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants