Scully: puppeteerLaunchOptions is not working

Created on 18 Jan 2020  路  4Comments  路  Source: scullyio/scully

馃悶 Bug report

puppeteerLaunchOptions is setting from configuration file does not work.

I want to set--no-sandbox.

So, Added settings to scully.config.js

But, Not working.

I think that scullyConfig.puppeteerLaunchOptions is undefinded.

https://github.com/scullyio/scully/blob/f81c560ad568898027ca1efb9025269a78c67895/scully/renderPlugins/launchedBrowser.ts#L18

Description

馃敩 Minimal Reproduction

add puppeteerLaunchOptions

scully.config.js

exports.config = {
  projectRoot: './src/app',
  puppeteerLaunchOptions: {
    args: ['--no-sandbox', '--disable-setuid-sandbox']
  },
  outFolder: './dist/static',
  routes: {
    '/blog/:slug': {
      type: 'contentFolder',
      slug: {
        folder: './blog'
      }
    }
  }
};

馃捇Your Environment

Angular Version:

Angular CLI: 9.0.0-rc.9
Node: 12.13.0
OS: darwin x64

Angular: 9.0.0-rc.9
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.9
@angular-devkit/build-angular     0.900.0-rc.9
@angular-devkit/build-optimizer   0.900.0-rc.9
@angular-devkit/build-webpack     0.900.0-rc.9
@angular-devkit/core              9.0.0-rc.9
@angular-devkit/schematics        9.0.0-rc.9
@angular/cdk                      8.2.3
@angular/material                 8.2.3
@ngtools/webpack                  9.0.0-rc.9
@schematics/angular               9.0.0-rc.9
@schematics/update                0.900.0-rc.9
rxjs                              6.5.4
typescript                        3.6.4
webpack                           4.41.2

Scully Version:

    "@scullyio/init": "0.0.14",
    "@scullyio/ng-lib": "latest",
    "@scullyio/scully": "latest",

馃敟 Exception or Error




bug waiting for new publish

Most helpful comment

I tried it with latest version of scully and can confirm that it works now, also managed to build it in docker.

All 4 comments

@nishimura-yuji I just pushed out new versions, can you update your packages and test again.
Please let us know, and if it works, can you close the issue?

I will close this issue... @nishimura-yuji if you have another error please create a new ticket or re-open this! thanks

This is still an issue, I am experiencing the same. function obsBrowser(options = config_1.scullyConfig.puppeteerLaunchOptions || {}) has scullyConfig as an empty object... I checked config.js and there is such a thing as compiledConfig and that one contains everything I need. But it's inside an async function and I am not sure when it's called by launchedBrowser clearly tries to access config before it was set.
image

I tried it with latest version of scully and can confirm that it works now, also managed to build it in docker.

Was this page helpful?
0 / 5 - 0 ratings