tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.07k stars 629 forks source link

Failed to build the bundle #218

Closed obxyann closed 3 years ago

obxyann commented 3 years ago

Try to build the last bf576ab but failed

[webpack-cli] Invalid options object. Terser Plugin has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'sourceMap'. These properties are valid:
   object { test?, include?, exclude?, terserOptions?, extractComments?, parallel?, minify? }

but no problem after removed 'sourceMap: true,' in webpack\build.config.js

    optimization: {
        minimize: true,
        minimizer: [new TerserPlugin({
            include: /\.min\.js$/,
            sourceMap: true, // <---remove this line
            extractComments: {
                banner: BANNER
            }
        })]
    },

My terser-webpack-plugin installed is v5.1.1 and also I can 't find 'sourceMap' option in terser-webpack-plugin ??

C451 commented 3 years ago

https://github.com/tvjsx/trading-vue-js/commit/de8ce1af4d1c56036cae3c76d25fda86f8c7bf56