canove / whaticket-community

A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
MIT License
1.57k stars 800 forks source link

Erro ao executar o npm run build no backend: error TS2688: Cannot find type definition file for 'pino-pretty' #483

Closed AdrianoRobson closed 1 year ago

AdrianoRobson commented 1 year ago

Ao executar o npm run build no backend, o erro abaixo aparece: error_whaticket

jccalbuquerque commented 1 year ago

Execute npm r pino-pretty

Em qui., 10 de nov. de 2022 19:50, Adriano Robson @.***> escreveu:

Ao executar o npm run build no backend, o erro abaixo aparece: [image: error_whaticket] https://user-images.githubusercontent.com/40671414/201222485-5a6eb406-8328-4d43-a1c9-e251f00695e2.png

— Reply to this email directly, view it on GitHub https://github.com/canove/whaticket-community/issues/483, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWKCGXTOG3C4LY5E64YWSDWHV34ZANCNFSM6AAAAAAR5BT2UA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

AdrianoRobson commented 1 year ago

npm r pino-pretty

Executei o comando no entanto continua dando erro ao executar npm run build whaticket_error2

jccalbuquerque commented 1 year ago

Após esse, rodar: npm i pino-pretty e tenra novamente

Em qui., 10 de nov. de 2022 20:06, Adriano Robson @.***> escreveu:

npm r pino-pretty

Executei o comando no entanto continua dando erro ao executar npm run build [image: whaticket_error2] https://user-images.githubusercontent.com/40671414/201224737-9ca97da3-6db5-4f87-983c-f25bda961b60.png

— Reply to this email directly, view it on GitHub https://github.com/canove/whaticket-community/issues/483#issuecomment-1311021365, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWKCGRIPRH7U5N7VF45HW3WHV5XPANCNFSM6AAAAAAR5BT2UA . You are receiving this because you commented.Message ID: @.***>

AdrianoRobson commented 1 year ago

npm i pino-pretty

Agora varios erros. Será que é a versão? whaticket_error3 png

jccalbuquerque commented 1 year ago

Verifica se a versão do npm subiu para 9.1.1, se sim, instala a versão 8.19.2

Em qui., 10 de nov. de 2022 20:13, Adriano Robson @.***> escreveu:

npm i pino-pretty

Agora varios erros. Será que é a versão? [image: whaticket_error3 png] https://user-images.githubusercontent.com/40671414/201225516-d1a9657d-461a-40d8-813c-17fd0287b4fe.png

— Reply to this email directly, view it on GitHub https://github.com/canove/whaticket-community/issues/483#issuecomment-1311028124, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWKCGQ2ATUWH6Z4OACKZDLWHV6SNANCNFSM6AAAAAAR5BT2UA . You are receiving this because you commented.Message ID: @.***>

AdrianoRobson commented 1 year ago

8.19.2

Não existe essa versão

AdrianoRobson commented 1 year ago

8.19.2

Não existe essa versão whaticket_error4

jccalbuquerque commented 1 year ago

Do npm

Em qui., 10 de nov. de 2022 20:24, Adriano Robson @.***> escreveu:

8.19.2

Não existe essa versão

— Reply to this email directly, view it on GitHub https://github.com/canove/whaticket-community/issues/483#issuecomment-1311036571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWKCGRMM5LQZQ7AHLPF33LWHV74RANCNFSM6AAAAAAR5BT2UA . You are receiving this because you commented.Message ID: @.***>

AdrianoRobson commented 1 year ago

A sim, a versão do npm é 8.1.2 vou instalar a versão 8.19.2

AdrianoRobson commented 1 year ago

@jccalbuquerque o que resolveu aqui foi o seguinte procedimento no backend. Obrigado pela ajuda! Essa provavelmente não é a forma ideal mas só dessa forma consegui rodar o build no backend. Estou usando a versao do node v16.18.1 e npm 8.19.2 Mudei a versão do typescript para 4.1 depois executei os seguintes comandos no backend: npm install npm run build npm r pino-pretty rm -rf dist/ npm i pino-pretty npm run build

allgood commented 1 year ago

I've made small changes on Dockerfile and package.json file so this problem gets fixed. It is on pull request #487

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

RafaelKwiek commented 7 months ago

meu dando erro poderia ajuda

npm run dev npm ERR! Missing script: "dev" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run