-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Upgrade Node and dependent packages to the latest #77
Conversation
This reverts commit 527a504.
A new stable Chrome (73) is blocking tests used Puppeteer. According to I/O dump, Chrome seems to be crashed with following message:
Related: puppeteer/puppeteer#3774 |
- Puppeteer has already default option `--disable-dev-shm-usage`. - BGPT no longer works from Puppeteer >= v1.13.0 See: puppeteer/puppeteer@ef2251d
Use Chromium supported by Puppeteer instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have many updates to battle against Puppeteer...
command: | | ||
mkdir -p ~/.puppeteer && cd ~/.puppeteer | ||
npm i puppeteer | ||
echo "export CHROME_PATH=$(node -e "console.log(require('puppeteer').executablePath())")" >> $BASH_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add workaround for broken Chrome 73. We have to use Chromium supported by Puppeteer (Chromium 74) within image.
We have confirmed to work conversion in Chrome 73 with out of container (Windows/macOS/Linux).
@@ -257,24 +257,14 @@ export class Converter { | |||
|
|||
private static async runBrowser() { | |||
if (!Converter.browser) { | |||
// Fix the rendered position of elements in <foreignObject> | |||
// See: https://bugs.chromium.org/p/chromium/issues/detail?id=467484 | |||
const args = ['--enable-blink-gen-property-trees'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puppeteer v1.13.0 no longer works BGPT feature.
puppeteer/puppeteer@ef2251d
It seems to have no critical problems while rendering PDF and images.
: chromeFinder[process.platform] | ||
|
||
if (process.env.IS_DOCKER || process.env.CI) | ||
args.push('--disable-dev-shm-usage') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puppeteer already has --disable-dev-shm-usage
option by default.
Upgrade Node (v10.15.3) and dependent packages to the latest version by using
yarn upgrade --latest
.This PR is included update of Marpit v0.8.0 and Marp Core v0.7.0.
Notable changes
@types/chokidar
has removed. chokidar has already provided type definitions..circleci/config.yml
as like as the other marp-team projects.Dockerfile
to use matched Puppeteer version.