Giter Club home page Giter Club logo

delegua-node's People

Contributors

italocobains avatar leonelsanchesdasilva avatar samuelrvg avatar seg-leonelsanches avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

delegua-node's Issues

Erro ao importar `moment`

Depois de instalar moment global.

var m = importar('moment')
escreva(m)

erros:

[Linha: undefined] Erro em JavaScript: undefined
Pilha de execução: undefined

Cenário esperado:

  • Não retornar erro no console
  • Conseguir usar um ou mais métodos do moment

Erro na conversão do JavaScript para Delegua

Estou tentando converter um arquivo ".js" para "delegua", porém ocorre um erro na saída do comando. Segue o comando e o erro:

delegua --traduzir javascript-para-delegua tradut.js

/usr/lib/node_modules/delegua/node_modules/@designliquido/delegua-node/fontes/importador/importador-javascript.js:47
        const retornoLexador = this.lexador.mapear(conteudoDoArquivo, hashArquivo);
                                            ^

TypeError: Cannot read properties of undefined (reading 'mapear')
    at ImportadorJavaScript.importar (/usr/lib/node_modules/delegua/node_modules/@designliquido/delegua-node/fontes/importador/importador-javascript.js:47:45)
    at NucleoTraducao.traduzirArquivo (/usr/lib/node_modules/delegua/node_modules/@designliquido/delegua-node/fontes/nucleo-traducao.js:101:51)
    at Delegua.traduzirArquivo (/usr/lib/node_modules/delegua/node_modules/@designliquido/delegua-node/fontes/delegua.js:37:24)
    at principal (/usr/lib/node_modules/delegua/node_modules/@designliquido/delegua-node/execucao.js:30:25)
    at Object.<anonymous> (/usr/lib/node_modules/delegua/node_modules/@designliquido/delegua-node/execucao.js:41:1)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Module.require (node:internal/modules/cjs/loader:1157:19)

Node.js v19.9.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.