代码之家  ›  专栏  ›  技术社区  ›  Jeff Tian

Webpackerr:进程未定义在Gatsby js基于travis CI构建期间出错

  •  0
  • Jeff Tian  · 技术社区  · 7 年前

    我的 gatsby js gatsby build 在我的本地机器上工作。但它无法打开 Travis CI 通过声明建立过程:

    WebpackError: process is not defined

    enter image description here

    有人能帮我吗?

    完整的在线日志如下: https://travis-ci.com/Jeff-Tian/ass

    graphql 问题,我该怎么办?


    更新:我的 gatsby-node.js 文件如下:

    /**
     * Implement Gatsby's Node APIs in this file.
     *
     * See: https://www.gatsbyjs.org/docs/node-apis/
     */
    
    // You can delete this file if you're not using it
    exports.modifyBabelrc = ({ babelrc }) => ({
      ...babelrc,
      plugins: babelrc.plugins.concat(['transform-regenerator']),
    })
    
    
    0 回复  |  直到 7 年前
    推荐文章