question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch back from Chromium to PhantomJS?

See original GitHub issue

We switched from PhantomJS to Chromium in #6377 by @PierreBesson

This is of course the future, but at the moment I have at least 2 feedbacks from clients where it doesn’t work:

  • At one client, using Windows 7, yarn test did not run at all with Chromium
  • At another client, using either Red Hat or Ubuntu, we have missing libraries that make Chromium fail

As we had none of those issues with PhantomJS (it works for both clients), I think it’s too early to have Chromium, and we should switch back to PhantomJS.

Thoughts, ideas, comments?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:36 (31 by maintainers)

github_iconTop GitHub Comments

3reactions
pascalgrimaudcommented, Oct 23, 2017

I spent a couple of hours tonight on this. In fact, we currently have the same issue in our jhipster/jhipster image.

To resolve, I needed to follow these instructions: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker

Then, here my karma.conf.js configuration:

    browsers: ['ChromiumHeadless'],
        customLaunchers: {
            'ChromiumHeadless': {
                base: 'Chrome',
                flags: [
                    '--no-sandbox',
                    '--headless',
                    '--disable-gpu',
                    // Without a remote debugging port, Google Chrome exits immediately.
                    '--remote-debugging-port=9222'
                ],
                debug: true
            }
        },
1reaction
thomastardycommented, Nov 16, 2017

Just for information if anybody tries to run the current version with ChromiumHeadless on CentOS 7, you have to install the packages chromium-libs and gtk3. This solved the problem for us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Switch back from Chromium to PhantomJS? -
We switched from PhantomJS to Chromium in #6377 by @PierreBesson. This is of course the future, but at the moment I have at...
Read more >
Replacing PhantomJS with headless Chrome - BigBinary Blog
We recently replaced PhantomJS with ChromeDriver for system tests in a project since PhantomJS is no longer maintained.
Read more >
Replacing PhantomJS with Headless Chrome in your ...
Learn how to replace PhantomJS with Headless Chrome in your testing stack, using the proxy-chain package to support authenticated proxies.
Read more >
Replace PhantomJS with Headless Chromium for JavaScript ...
“Chrome is faster and more stable than PhantomJS.” Fortunately, I discovered that switching to Chrome was easy. Err… switching to Chromium ...
Read more >
Moving from PhantomJS to Chrome
Moving from PhantomJS to Chrome ... We used PhantomJS for automated UI testing for some time. It successfully helped us to be sure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found