EvolutionAPI / evolution-api

Evolution API is an open-source WhatsApp integration API
https://evolution-api.com
GNU General Public License v3.0
901 stars 479 forks source link

[ERROR][PT] SyntaxError: Cannot use import statement outside a module #628

Closed Infus-Vitor closed 3 weeks ago

Infus-Vitor commented 3 weeks ago

Welcome!

What did you do?

Eu segui tudo certinho na documentação para installar a api em um docker, mas ao iniciar o container, tive um syntax error

/evolution/src/main.ts:1 import 'express-async-errors'; ^^^^

SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1153:20) at Module._compile (node:internal/modules/cjs/loader:1205:27) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47

Node.js v20.7.0

What did you expect?

Esperava acessar o http://localhost:8080 e ver um json, mas não consigo iniciar o container

What did you observe instead of what you expected?

Um erro Sem título

Screenshots/Videos

No response

Which version of the API are you using?

1.8.0

What is your environment?

Windows

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

Infus-Vitor commented 3 weeks ago

I realized I am stupid... sorry