包含 kepler.gl 后,webpack 在 gitlab CI/CD 上失败且没有错误

问题描述

我能够在本地构建我的项目。在 gitlab runner 上,webpack 的进度上升到 100%,然后管道失败而没有错误。尚未达到 1 小时的超时时间。

=> 如何找到有关管道停止原因的更多详细信息?

该问题与包含 kepler.gl 和 redux 相关,具有很多子依赖项。我希望 webpack 告诉我已达到某个大小阈值或其他什么。

如果我删除了 kepler.gl 和 redux,管道就可以工作了。

enter image description here

相关问题:

Webpack build fails with Gitlab-CI

CI/CD on gitlab fails to compile with babel-loader

我用于构建的命令:

webpack --mode=production --progress --config webpack.config.js

webpack.config.js

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const copyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
  entry: [
    'react-app-polyfill/ie9','react-app-polyfill/stable',`${__dirname}/src/index.jsx`,],output: {
    path: `${__dirname}/dist`,filename: 'bundle.js',},resolve: {
    extensions: ['.js','.jsx','.css'],module: {
    rules: [
      {
        enforce: 'pre',test: /\.(jsx|js)$/,exclude: /node_modules/,loader: 'eslint-loader',options: {
          // eslint options (if necessary)
        },{
        test: /\.(jsx|js)$/,loader: 'babel-loader',options: {
          "presets": [
            [
              "@babel/preset-env",{
                "targets": {
                  "node": "current"
                }
              }
            ],"@babel/react","@babel/flow"
          ],"plugins": ["@babel/plugin-proposal-class-properties"]
        }
      },{
        test: /\.css$/i,use: [MiniCssExtractPlugin.loader,'css-loader'],{
        test: /\.(csv|gif|jpg|png|svg|pdf)$/,use: 'url-loader',{
        test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,// required for font-awesome
        loader: 'url-loader',{
        test: /\.(ttf|eot|)(\?v=[0-9]\.[0-9]\.[0-9])?$/,plugins: [
    new MiniCssExtractPlugin(),new copyWebpackPlugin({
      patterns: [
        { from: 'src/index.html',to: '' },{ from: 'doc/*.pptx' },{ from: 'src/images',to: 'images' },{ from: 'doc/*.html' },{ from: 'doc/*.png' },}),};

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)