TranscryptOrg / Transcrypt

Python 3.9 to JavaScript compiler - Lean, fast, open!
https://www.transcrypt.org
Apache License 2.0
2.82k stars 215 forks source link

nodejs_demo doesn't work as described on web site; does via readme #851

Open garyrob opened 1 year ago

garyrob commented 1 year ago

On the page https://www.transcrypt.org/docs/html/installation_use.html, there's a description of how to compile and run the nodejs_demo. However, following the instructions there lead to errors. There is a readme.txt in the nodejs_demo directory. It says to use rollup, which bundles the javascript into a CommonJS format which node can run. That necessary instruction is omitted from the web site version. Also the arguments to the transcrypt command are different; I'm not sure why.

I could offer a PR to fix the docs, but I'm not sure if there's some reason for the different arguments to transcrypt or for not using rollup in the description on the web site. The web site calls transcrypt with: transcrypt -b -p .none nodejs_demo whereas the readme.txt uses: transcrypt -b nodejs_demo

JennaSys commented 1 year ago

Related to issue #832

garyrob commented 1 year ago

Yes, it's the same issue!