peh / grails-babel-asset-pipeline

babel.js transformation for grails-asset-pipeline
7 stars 2 forks source link

ReferenceError: "babel" is not defined #7

Open Luxor opened 8 years ago

Luxor commented 8 years ago

Hi,

This exception always raised after server start. But after second attempt anything is ok

Message: babel-transforming user-side-restriction-ccy.es6 failed: org.mozilla.javascript.EcmaError: ReferenceError: "babel" is not defined.
    Line | Method
->>   76 | process              in asset.pipeline.babel.BabelProcessor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    160 | processedStream      in asset.pipeline.AbstractAssetFile
|    307 | fileContents . . . . in asset.pipeline.DirectiveProcessor
|     65 | serveUncompiledAsset in asset.pipeline.AssetPipeline
|    171 | doFilter . . . . . . in asset.pipeline.grails.AssetPipelineFilter
|   1142 | runWorker            in java.util.concurrent.ThreadPoolExecutor
|    617 | run . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run                  in java.lang.Thread

My enviroment: grails: 2.4.5, windows 7, asset-pipeline :asset-pipeline:2.6.10

peh commented 8 years ago

hey @Luxor, can reproduce this on 2.4.4 to will check it! it's really weird though.

Luxor commented 8 years ago

It's different every time. Agree - weird. Any Idea?

Servlet.service() for servlet [default] in context with path [/client-admin] threw exception
Message: TypeError: Cannot find function registerSetAttribute in object 
function (ownerDocument) {...}. (file:/C:/Users/maliigo/.m2/repository/net/errbuddy/plugins/babel-asset-pipeline/1.4.4/babel-asset-pipeline-1.4.4.jar!/asset/pipeline/babel/env.rhino.js#8372)
kevana commented 8 years ago

We also see this on a regular basis on first pageload after server boot. And we only see it when developing locally so there hasn't been much motivation to track it down.

lbwexler commented 7 years ago

+1 Any update on this or workarounds? Definitely making this difficult/impossible to use. Thanks! (Grails 2.4.3)