-
Notifications
You must be signed in to change notification settings - Fork 213
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
[WIP] Typescript Port. #67
base: main
Are you sure you want to change the base?
Conversation
Hey @UrielCh, Really love the code quality on your Typescript port of this pretty dead project. I'm currently struggling a little with building your heavy-duty branch (https://github.com/UrielCh/fakebrowser/tree/heavy-duty). I saw that I needed your other project puppeteer-extra-ts (https://github.com/UrielCh/puppeteer-extra-ts) because there are 3 linked dependencies in the package.json. I changed the double backslashes to make it linux compatible:
I was able to clone and build puppeteer-extra-ts very easily.
So it seems like the dependencies are all there. But when I finally try building (yarn build) your heavy-duty Fakebrowser, I get this:
It seems like the puppeteer-extra that's linked from your puppeteer-extra-ts project is exporting the interface a little different? It's probably not that, but that's what the error hints at... Really stuck on this part. I'd be really glad if you could look into this because Fakebrowser is a great project and I'd love to use your changes, especially because its not only a Typescript port but you also fixed all of the _client stuff which was getting undefined errors and such. Thanks! |
hi, first of all I use to work witgh pnpm, not yarn. https://github.com/UrielCh/puppeteer-extra-ts once your clone this repo also clone https://github.com/UrielCh/puppeteer-extra-ts next to it. |
so use pnpm, should be all you need to make it works. |
Heres the two folders i cloned:
And these are the symlinks inside fakebrowser/node_modules to your puppeteer-extra-ts folder:
I was able to build puppeteer-extra-ts with pnpm run bootstrap && pnpm build. After that i made sure the symlinks were there. Buidling fakebrowser with pnpm build gives this error still:
Sorry for all the questions I'm new to the whole nodejs environment... |
Hey @UrielCh I have a hacky solution to this:
This makes it build on my machine, any idea why these weird patches are needed? Maybe I'm making a mistake somewhere in the build steps, is there a more elegant solution? |
I did not touch this for a while. so it's hard for me to fix that without checking the code.... |
WIP