Repository navigation
Error and warning when using init command #442
Copy link
Copy link
Open
Description
Activity
Hi there,
Cypress CLI version 1.19.1 is the newer one, which has all the bug fixes and more stability compared to older versions.
By the way I could not understand your exact issue, I would suggest you to please raise support ticket.
Link- https://www.browserstack.com/contact#technical-support
Thanks
Hi, thanks for the reply but Cypress CLI version
1.19.1has the same issues (which is the reason I created this thread). Here is an output frombrowserstack-cypress init:(node:526071) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) [30.11.2022, 13:00:44] - info: Creating file: /home/user/dev/project/browserstack.json [30.11.2022, 13:00:44] - info: BrowserStack Config File created, you can now run browserstack-cypress --config-file run /home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:176 if(typeof bsConfig === 'object' && !utils.isUndefined(bsConfig.run_settings)) { ^ TypeError: Cannot read property 'run_settings' of null at redactBsConfig (/home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:176:66) at redactRecordCaps (/home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:192:3) at Object.send (/home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/usageReporting.js:208:3) at Object.exports.sendUsageReport (/home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/utils.js:140:18) at exports.configCreated (/home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/utils.js:586:8) at /home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/bin/helpers/fileHelpers.js:14:11 at /home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/node_modules/graceful-fs/graceful-fs.js:143:16 at /home/user/.nvm/versions/node/v14.17.4/lib/node_modules/browserstack-cypress-cli/node_modules/graceful-fs/graceful-fs.js:61:14 at FSReqCallback.oncomplete (fs.js:180:23)As suggested please raise a support ticket.
Link- https://www.browserstack.com/contact#technical-support
Thanks
Reacted by Jakub Łabno
Metadata
Metadata
Assignees
Labels
No labels
Hello!
Version
1.11.1was the last version that runinitcommand without warnings and errors.In this version when called
initcommand it printed to the console only two lines:Since version
1.11.2it prints also aWarning:Since version
1.14.0it prints also aTypeError:Tested on node:
v12.22.12,v14.17.4,v18.12.1BTW. Only one line differs in generated config (

1.11.1vs1.19.1):