bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
194 stars 92 forks source link

requirejs.onError Error: Script error for "react", needed by #223

Open JPHamlett1993 opened 6 years ago

JPHamlett1993 commented 6 years ago

I recently updated the plugin in gradle from

        classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.12.1'
        classpath 'com.bertramlabs.plugins:less-asset-pipeline:2.12.1'
        classpath 'net.errbuddy.plugins:babel-asset-pipeline:1.4.5'

To

        classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.15.0'
        classpath 'com.bertramlabs.plugins:less-asset-pipeline:2.15.0'
        classpath 'net.errbuddy.plugins:babel-asset-pipeline:1.4.5'

When I use the old version my application is fine, when I use the new version I get the following error all over the place

requirejs.onError Error: Script error for "react", needed by

My assets configuration is unchanged

assets {
//    packagePlugin = true
    configOptions = [
            babel : [
                    enabled       : true,
                    processJsFiles: false,
                    options       : [
                            nonStandard: true,
                            modules    : 'amd',
                            moduleIds  : true
                    ]
            ],
            plugin: [
                    'bsb-pattern-library': [
                            excludes: ['**/*.less'],
                            includes: ["${assetPipelineBrand}*.less", 'themes/*.less', 'pattern-library-core.less']
                    ],
                    'bsb-core-web'       : [
                            excludes: ["**/*.spec.es6", "**/*.spec.js"]
                    ]
            ]
    ]
    minifyOptions = [languageMode: 'ES6', targetLanguage: 'ES5', angularPass: true]
    minifyJs = true
    minifyCss = true
    excludes = ['**/*.less']
    includes = ['application.less', 'theme.less', "${assetPipelineBrand}*.less", 'themes/*.less', 'pattern-library-core.less']
}

Did something change or am I missing something?