Inline JavaScript is not enabled. Is it set in your options?

React using protable prompts:

// https://github.com/ant-design/ant-motion/issues/44
.bezierEasingMixin();
^
Inline JavaScript is not enabled. Is it set in your options?
      Error in /Users/jun/object/aoi/node_modules/antd/es/style/color/bezierEasing.less (line 110, column 0)

webpack compiled with 67 errors

Solution:
webpack.mix.js configures webpackconfig and enables JavaScript enabled for less loader

mix.js('resources/js/app.js', 'public/js')
    .react()
    .webpackConfig({
        module: { rules: [{
            test: /\.less$/,
            use: [
                {
                    loader: "less-loader",
                    options: {
                        lessOptions: {
                            javascriptEnabled: true,
                        }
                    }
                }
            ]
        }]}
    })
    .sass('resources/sass/app.scss', 'public/css', [
    ]);

Read More: