Trying to compile and run `hello` demo from source, but I get "ReferenceError: hello is not defined"

Abierto
#710 12 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript, python

Línea de trabajo

Reproduce the report by running transcrypt hello with hello.htm and hello.py, then serving the directory and opening hello.html. Compare the source files with the generated __target__ output and inspect how the page loads it; done means the two buttons work without ReferenceError: hello is not defined.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

IS: question

Not sure if this is the right place here, but I cannot get the hello demo get running from teh source code:

After installing transcrypt in my virtual env and activating the venv, I do the follwoing:

  1. I copy hello.htm & hello.py to a new directory myhello.

  2. In this directory I run

    transcrypt hello
    

    which generates stuff in a __target__ subdirectory.

  3. Now I run the web server in myhello and access http://localhost:8000/hello.html.

  4. When I click on any of the two buttons nothing happens and I get in the Firefox dev console the message "ReferenceError: hello is not defined".

What's going wrong here? I must miss something vital here...

Lenguaje dominante
Python
Estrellas
2.9k
Forks
218
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TranscryptOrg/Transcrypt

Todos los issues de TranscryptOrg/Transcrypt

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.