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

package expects protractor's package.json file to be in same directory as conf.js #454

Open
roperezp opened this issue Jun 3, 2021 · 0 comments

Comments

@roperezp
Copy link

roperezp commented Jun 3, 2021

Protractor: 7.0.0
node: 12.16.1

Getting this error when running Protractor tests:

E/configParser - Error code: 105
E/configParser - Error message: failed loading configuration file /Applications/IntelliJ IDEA.app/Contents/plugins/JavaScriptLanguage/helpers/protractor-intellij/lib/protractor-intellij-config.js
E/configParser - Error: ENOENT: no such file or directory, open '/Users/roperez/github/ncl-e2e-tests/e2e/common-config/conf-js/package.json'
at Object.openSync (fs.js:457:3)
at Object.readFileSync (fs.js:359:35)
at AsyncFunction.module.exports.sync (/Users/roperez/github/ncl-e2e-tests/node_modules/read-pkg/index.js:34:28)
at Authenticator.authenticatorManifest (/Users/roperez/github/ncl-e2e-tests/node_modules/authenticator-browser-extension/lib/Authenticator.js:68:26)
at Authenticator.extensionFile (/Users/roperez/github/ncl-e2e-tests/node_modules/authenticator-browser-extension/lib/Authenticator.js:63:40)
at Authenticator.asBase64 (/Users/roperez/github/ncl-e2e-tests/node_modules/authenticator-browser-extension/lib/Authenticator.js:39:21)
at Object. (/Users/roperez/github/ncl-e2e-tests/e2e/common-config/conf-js/protractor.conf.js:16:93)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)

For some reason authenticator-browser-extension is requiring to have package.json file at same level as conf.js. Tried moving package.json to /conf-js folder and it worked as expected.

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

No branches or pull requests

1 participant