Title: Error and warning when using `init` command · Issue #442 · browserstack/browserstack-cypress-cli · GitHub
Open Graph Title: Error and warning when using `init` command · Issue #442 · browserstack/browserstack-cypress-cli
X Title: Error and warning when using `init` command · Issue #442 · browserstack/browserstack-cypress-cli
Description: Hello! Version 1.11.1 was the last version that run init command without warnings and errors. In this version when called init command it printed to the console only two lines: [29.11.2022, 16:29:41] - info: Creating file: /projects/lear...
Open Graph Description: Hello! Version 1.11.1 was the last version that run init command without warnings and errors. In this version when called init command it printed to the console only two lines: [29.11.2022, 16:29:4...
X Description: Hello! Version 1.11.1 was the last version that run init command without warnings and errors. In this version when called init command it printed to the console only two lines: [29.11.2022, 16:29:4...
Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/issues/442
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error and warning when using `init` command","articleBody":"Hello!\r\n\r\nVersion `1.11.1` was the last version that run `init` command without warnings and errors.\r\nIn this version when called `init` command it printed to the console only two lines:\r\n```\r\n[29.11.2022, 16:29:41] - info: Creating file: /projects/learn/cypress-example-kitchensink/browserstack.json\r\n[29.11.2022, 16:29:41] - info: BrowserStack Config File created, you can now run browserstack-cypress --config-file run\r\n```\r\n\r\nSince version `1.11.2` it prints also a `Warning`:\r\n```\r\n(node:157652) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency\r\n(Use `node --trace-warnings ...` to show where the warning was created)\r\n```\r\n\r\nSince version `1.14.0` it prints also a `TypeError`:\r\n```\r\n/home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:176\r\nif(typeof bsConfig === 'object' && !utils.isUndefined(bsConfig.run_settings)) {\r\n^\r\n\r\n TypeError: Cannot read properties of null (reading 'run_settings')\r\n at redactBsConfig (/home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:176:66)\r\n at redactRecordCaps (/home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:192:3)\r\n at Object.send (/home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:208:3)\r\n at exports.sendUsageReport (/home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/utils.js:137:18)\r\n at exports.configCreated (/home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/utils.js:507:8)\r\n at /home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/bin/helpers/fileHelpers.js:14:11\r\n at /home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/node_modules/graceful-fs/graceful-fs.js:143:16\r\n at /home/user/.nvm/versions/node/v18.12.1/lib/node_modules/browserstack-cypress-cli/node_modules/graceful-fs/graceful-fs.js:61:14\r\n at FSReqCallback.oncomplete (node:fs:197:23)\r\n```\r\n\r\nTested on node: `v12.22.12`, `v14.17.4`, `v18.12.1`\r\n\r\nBTW. Only one line differs in generated config (`1.11.1` vs `1.19.1`):\r\n\r\n","author":{"url":"https://github.com/Hakier","@type":"Person","name":"Hakier"},"datePublished":"2022-11-29T15:42:56Z","url":"https://github.com/browserstack/browserstack-cypress-cli/issues/442"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:903a68c5-fcfa-f0ae-a281-bcada9d236b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE1A:176400:CB04E3:11B2AF8:6B0439D5 |
| html-safe-nonce | b3cd5461575daa1238cfa186dcbf4ccde0cb0bb59bf7a7ddfa5bb23f0984ba11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTFBOjE3NjQwMDpDQjA0RTM6MTFCMkFGODo2QjA0MzlENSIsInZpc2l0b3JfaWQiOiI0NDYwNzY0NDgxNTA4ODgyOTAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2adc2916de0efa97c419ad0dda1f514ce3f6fa8ac686ce8d1a3ac2e62fb6d239 |
| hovercard-subject-tag | issue:1468280312 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-cypress-cli/442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b4528fa56e434523f0c7e70502636404cfe13d073593e60e7b987c3d5b66daae/browserstack/browserstack-cypress-cli/issues/442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b4528fa56e434523f0c7e70502636404cfe13d073593e60e7b987c3d5b66daae/browserstack/browserstack-cypress-cli/issues/442 |
| og:image:alt | Hello! Version 1.11.1 was the last version that run init command without warnings and errors. In this version when called init command it printed to the console only two lines: [29.11.2022, 16:29:4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Hakier |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 242935045 |
| octolytics-dimension-repository_nwo | browserstack/browserstack-cypress-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 242935045 |
| octolytics-dimension-repository_network_root_nwo | browserstack/browserstack-cypress-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width