V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
maruize321
V2EX  ›  程序员

vue 中使用 google-cloud/translate 的问题

  •  
  •   maruize321 · 2019-12-11 17:16:42 +08:00 · 1303 次点击
    这是一个创建于 1569 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://www.npmjs.com/package/@google-cloud/translate 的例子复制过去也报错

    asyncToGenerator.js?2743:20 Uncaught (in promise) TypeError: Unexpected error determining execution environment: Failed to fetch

    OPTIONS http://metadata.google.internal./computeMetadata/v1/instance net::ERR_NAME_NOT_RESOLVED

    gaxios.js?8053:80 OPTIONS http://169.254.169.254/computeMetadata/v1/instance net::ERR_ADDRESS_UNREACHABLE

    ysc3839
        1
    ysc3839  
       2019-12-12 01:22:57 +08:00 via Android
    这个库不支持浏览器使用吧?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   939 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.