errbuddy / babel-asset-pipeline

babel.js transformation for asset-pipeline
10 stars 6 forks source link

error during assetCompile #9

Closed sheehan closed 8 years ago

sheehan commented 8 years ago

Everything works in dev mode, but when I run ./gradlew war I get:

* What went wrong:
Execution failed for task ':assetCompile'.
> TypeError: Cannot call property print in object [JavaPackage asset.pipeline.babel.BabelProcessor]. It is not a function, it is "object". (file:/Users/sheehan/.gradle/caches/modules-2/files-2.1/net.errbuddy.plugins/babel-asset-pipeline/1.4.3/6ed57a3810faf7d03aaf75f18af5a71b6d52ec24/babel-asset-pipeline-1.4.3.jar!/asset/pipeline/babel/shell.js#2)
yuki-takei commented 8 years ago

@sheehan

It's because gradle doesn't know the classpath of babel-asset-pipeline. Modify build.gradle and add a classpath line.

buildscript {

    ...

    dependencies {
        ...
        classpath "net.errbuddy.plugins:babel-asset-pipeline:1.4.3" // <- add this line
    }
}

See also https://docs.gradle.org/current/userguide/organizing_build_logic.html#sec:external_dependencies

sheehan commented 8 years ago

That did it. Thanks @yuki-takei