Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.

Comments

Fix puppeteer import#145

Merged
styfle merged 1 commit intomainfrom
fix-puppeteer-import
Jan 9, 2021
Merged

Fix puppeteer import#145
styfle merged 1 commit intomainfrom
fix-puppeteer-import

Conversation

@styfle
Copy link
Member

@styfle styfle commented Jan 9, 2021

When users clone this repo and changed TS to JS source files, they would see the following error:

TypeError: Cannot read property '_launcher' of undefined

This is because TS imports the entire module, not just the single function, so it didn't suffer from the unbounded this.

This PR changes the import so it will work with either JS or TS.

Related

TypeError: Cannot read property '_launcher' of undefined
@vercel
Copy link

vercel bot commented Jan 9, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vercel/og-image/bic3duzs9
✅ Preview: https://og-image-git-fix-puppeteer-import.vercel.vercel.app

@styfle styfle merged commit 7d87967 into main Jan 9, 2021
@styfle styfle deleted the fix-puppeteer-import branch January 9, 2021 21:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants