Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Closure-compiler errors on current master #27

Closed
reinhard opened this issue Dec 17, 2014 · 4 comments
Closed

Closure-compiler errors on current master #27

reinhard opened this issue Dec 17, 2014 · 4 comments

Comments

@reinhard
Copy link

I cloned the current master, ran npm install, bower install and gulp build -p and got following build errors and warnings:

[19:59:04] Starting 'compile-clientapp'...
[19:59:12] Command failed: /tmp/8c1a6e26-86eb-4cef-a622-7d0b1835ceb6/bower_components/closure-library/closure/goog/asserts/asserts.js:358: WARNING - Property displayName never defined on Function
    return value.displayName || value.name || 'unknown type name';
           ^

/tmp/8c1a6e26-86eb-4cef-a622-7d0b1835ceb6/bower_components/closure-library/closure/goog/asserts/asserts.js:360: WARNING - Property displayName never defined on Function
    return value.constructor.displayName || value.constructor.name ||
           ^

bower_components/react-externs/externs.js:1576: WARNING - Bad type annotation. missing opening [
   * @param {function (new:Object, ...*): ?} expectedClass
                                      ^

/tmp/eec20035-44aa-46e6-9057-4411a755f85e/bower_components/closure-library/closure/goog/base.js:236: ERROR - illegal initialization of @define variable goog.DISALLOW_TEST_ONLY_CODE
goog.define('goog.DISALLOW_TEST_ONLY_CODE', COMPILED && !goog.DEBUG);
                                            ^

1 error(s), 3 warning(s), 96.2% typed

Unfortunately I have no idea how to fix this problem.

@steida
Copy link
Contributor

steida commented Dec 18, 2014

Fixed. Update bower pls.

@steida steida closed this as completed Dec 18, 2014
@reinhard
Copy link
Author

Thanks for the quick response. Works now again for me.

@exhuma
Copy link

exhuma commented May 2, 2015

I'm getting the same error, albeit in a project of my own. Was led here by google ;)

What was your fix? Upgrading/Downgrading closure? If yes, to which revision?

@steida
Copy link
Contributor

steida commented May 2, 2015

bower cache clean, for some reason bower caches downloaded zip. Btw, in new ES6 Este, I don't use bower anymore. Closure Tools were moved into npm.

"google-closure-compiler": "^20150315.0.2",
"google-closure-library": "^20150315.0.0",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants