vitorleal / node-correios

:envelope: Calcular frete e pesquisar CEP com a API dos Correios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uso com typescript

brenodasilvaa opened this issue · comments

Olá,

Estou tentando usar este módulo no typescript 3.5.3. Quando chamo a função o seguinte erro aparece:

ERROR in ./node_modules/httpreq/lib/httpreq.js
Module not found: Error: Can't resolve 'fs'
ERROR in ./node_modules/node-correios/node_modules/soap/lib/security/ClientSSLSecurity.js
Module not found: Error: Can't resolve 'fs'
ERROR in ./node_modules/node-correios/node_modules/soap/lib/security/ClientSSLSecurityPFX.js
Module not found: Error: Can't resolve 'fs'
ERROR in ./node_modules/node-correios/node_modules/soap/lib/wsdl/index.js
Module not found: Error: Can't resolve 'fs'
ERROR in ./node_modules/request/lib/har.js
Module not found: Error: Can't resolve 'fs'
ERROR in ./node_modules/xml-crypto/lib/signed-xml.js
Module not found: Error: Can't resolve 'fs'
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'net'
ERROR in ./node_modules/tough-cookie/lib/cookie.js
Module not found: Error: Can't resolve 'net'
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'net'
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'tls'
1mERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'tls'

Alguém já teve o mesmo problema? Desculpem se for uma pergunta besta, mas nada do que ja tentei resolveu. Obrigado desde já