alpine-chrome icon indicating copy to clipboard operation
alpine-chrome copied to clipboard

Get a deno example using Chrome

Open jlandure opened this issue 4 years ago • 4 comments

Context

It could be fun to get a deno example using Chrome using the with-deno tag. See the with-deno folder

Related to https://github.com/Zenika/alpine-chrome/pull/89

jlandure avatar May 26 '20 06:05 jlandure

Would be glad to do that! I'll give a try ASAP

aceol avatar May 28 '20 07:05 aceol

Hi @aceol 👋

Thanks for your motivation! 👍 For your information, I've discussed with @hgwood and said:

node and deno are incompatible You can't run a node lib in deno except if there is dependency to nodejs.

And in the deno page

Deno is not compatible, in general, with Node (NPM) packages. There is a nascent compatibility layer being built at https://deno.land/std/node/ but it is far from complete. ... Over time, we expect Deno to be able to run more and more Node programs out-of-the-box

jlandure avatar May 28 '20 08:05 jlandure

Hi @jlandure sorry for the delay. What exactly do you mean by a deno example using Chrome, any specific idea?

I can see it's not working with puppeteer. I had to update the Dockerfile commenting #RUN git clone https://github.com/puppeteer/puppeteer/blob/master/src/ puppeteer I guess it's a known issue but is that ok to be on the master branch?

aceol avatar Jun 13 '20 22:06 aceol

Hi @aceol 👋

💬 I think about running something with deno using a Chromium (in Docker) See : https://github.com/denoland/deno/issues/1120 or https://github.com/denoland/deno/issues/4481 (and this demo)

👌 Yes Puppeteer will not work because of its node dependencies. See my comment https://github.com/Zenika/alpine-chrome/issues/95#issuecomment-635214086

💡 Do you have any another idea in mind?

jlandure avatar Jun 14 '20 10:06 jlandure