Unexpected token while running node example

Abierto
#614 2 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
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript, node.js, python
Área
cli, compilers

Línea de trabajo

Start with the node.js compilation instructions in the linked documentation and the generated nodejs_demo.js named in the report. Reproduce the node nodejs_demo.js command and inspect the generated import statement against the reported syntax error; done means the documented example runs without the unexpected-token failure.

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

Descripción

IS: bug?

Hello,
I try to run the nodejs example found here https://www.transcrypt.org/docs/html/installation_use.html
2.5. Compiling for node.js
And get unexpected token error on node nodejs_demo.js command:

import { AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, JsIterator, PyIterator, Terminal, add, and, call, class, envir, eq, floordiv, ge, get, getcm, getitem, getslice, getsm, gt, i, iadd, iand, idiv, ijsmod, ilshift, imatmul, imod, imul, in, init, ior, ipow, irshift, isub, ixor, jsUsePyNext, jsmod, k, kwargtrans, le, lshift, lt, matmul, mergefields, mergekwargtrans, mod, mul, ne, neg, nest, or, pow, pragma, proxy, pyUseJsNext, rshift, setitem, setproperty, setslice, sort, specialattrib, sub, super, t, terminal,

SyntaxError: Unexpected token {
at new Script (vm.js:85:7)
at createScript (vm.js:266:10)
at Object.runInThisContext (vm.js:314:10)
at Module._compile (internal/modules/cjs/loader.js:698:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
at Function.Module._load (internal/modules/cjs/loader.js:562:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:801:12)
at internal/main/run_main_module.js:21:11

Any idea?

Regards

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.