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

NodeJS 8: _debugger module not found during pause #4390

Closed
Mamoru1234 opened this issue Jul 17, 2017 · 8 comments
Closed

NodeJS 8: _debugger module not found during pause #4390

Mamoru1234 opened this issue Jul 17, 2017 · 8 comments
Milestone

Comments

@Mamoru1234
Copy link

Bug report

  • Node Version: 8.1.4

  • Protractor Version: 5.1.2

  • Angular Version: NO

  • Browser(s): Chrome 59.0.3071.115 (Official Build) (64-bit)

  • Operating System and Version Ubuntu 17.04

  • Repo with STR
    https://github.com/Mamoru1234/protractor-bug (Sorry for naming)

  • Output from running the test:
    Error: Cannot find module '_debugger'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object. (/home/alexei/temp/protractor-bug/node_modules/protractor/built/debugger/debuggerCommons.js:1:82)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)

  • Steps to reproduce the bug

npm i 
npm run selenium-setup
npm run protractor
@Mamoru1234
Copy link
Author

Actually, I spend some time reviewing my node_module(s) and can't find _debigger module anywhere.
As well as some require enhancement, it looks like native require is passed to debugger sandbox.

@wswebcreation
Copy link
Contributor

Hi @Mamoru1234

Tnx for the issue and for the repo.
This issue has to do with NodeJS 8. Protractor isn't officially supporting it currently. If you (downgrade to 6.9.x, I use NVM to easily switch) you will see it is working again.

This needs to be something for a future release in which Protractor will support NodeJS 8

@wswebcreation wswebcreation changed the title _debugger module not found during pause NodeJS 8: _debugger module not found during pause Jul 19, 2017
@wswebcreation wswebcreation added this to the Upcoming milestone Jul 19, 2017
@Mamoru1234
Copy link
Author

@wswebcreation What is the steps to get Node v8 official supported?

@wswebcreation
Copy link
Contributor

Hi @Mamoru1234

I've asked it to the core team. Will post it here if I hear something.

@marandageist
Copy link

Dupe of #4307

@NickTomlin
Copy link
Contributor

NickTomlin commented Aug 2, 2017

I'm going to go ahead and collapse this to consolidate and track in #4307 @wswebcreation feel free to re-open if you'd like to keep things split out.

@anarang
Copy link

anarang commented Feb 15, 2018

I am facing the same issue and unable to use elementExplorer with protractor.

Node version: v8.9.1
Protractor version: Version 5.1.1

$ protractor --elementExplorer
(node:20299) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[20:11:30] I/local - Starting selenium standalone server...
[20:11:33] I/local - Selenium standalone server started at http://192.168.1.41:51378/wd/hub
[20:11:37] I/protractor -
[20:11:37] I/protractor - ------- Element Explorer -------
[20:11:37] I/protractor - Starting WebDriver debugger in a child process. Element Explorer is still beta, please report issues at github.com/angular/protractor
[20:11:37] I/protractor -
[20:11:37] I/protractor - Type to see a list of locator strategies.
[20:11:37] I/protractor - Use the list helper function to find elements by strategy:
[20:11:37] I/protractor - e.g., list(by.binding('')) gets all bindings.
[20:11:37] I/protractor -
module.js:538
throw err;
^

Error: Cannot find module '_debugger'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (/Users/anisha/.npm-packages/lib/node_modules/protractor/built/debugger/debuggerCommons.js:1:82)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
[20:11:38] I/local - Shutting down selenium standalone server.'

Any solution to this yet? I see a couple of other issues but do not see any official solution yet. Any help is appreciated.

@kshrestha99
Copy link

This issue is still happeneing...any one know why it is not resolved yet?

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

6 participants