bazel run @yarn//:yarn add @angular/cdk
ibazel run src:devserver
Uncaught Error: Mismatched anonymous define() module: function (exports,_angular_core,_angular_common) { 'use strict';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Injection token used to inject the document into Directionality.
* This is used so that the value can be faked in tests.
*
* We can't use the real document in tests because changing the real `dir` causes geometry-based
* tests in Safari to fail.
*
* We also can't re-provide the DOCUMENT token from platform-brower because the unit tests
* themselves use things like `querySelector` in test code.
*/
var DIR_DOCUMENT = new _angular_core.InjectionToken('cdk-dir-doc');
/**
* The directionality (LTR / RTL) context for the application (or a subtree of it).
* Exposes the current direction and a stream of direction changes.
*/
var Directionality = /** @class */ (function () {
function Directionality(_document) {
/**
* The current 'ltr' or 'rtl' value.
*/
this.value = 'ltr';
/**
* Stream that emits whenever the 'ltr' / 'rtl' state changes.
*/
this.change = new _angular_core.EventEmitter();
if (_document) {
// TODO: handle 'auto' value -
// We still need to account for dir="auto".
// It looks like HTMLElemenet.dir is also "auto" when that's set to the attribute,
// but getComputedStyle return either "ltr" or "rtl". avoiding getComputedStyle for now
var /** @type {?} */ bodyDir = _document.body ? _document.body.dir : null;
var /** @type {?} */ htmlDir = _document.documentElement ? _document.documentElement.dir : null;
this.value = /** @type {?} */ ((bodyDir || htmlDir || 'ltr'));
}
}
Directionality.decorators = [
{ type: _angular_core.Injectable },
];
/** @nocollapse */
Directionality.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [DIR_DOCUMENT,] },] },
]; };
return Directionality;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Directive to listen for changes of direction of part of the DOM.
*
* Provides itself as Directionality such that descendant directives only need to ever inject
* Directionality to get the closest direction.
*/
var Dir = /** @class */ (function () {
function Dir() {
this._dir = 'ltr';
/**
* Whether the `value` has been set to its initial value.
*/
this._isInitialized = false;
/**
* Event emitted when the direction changes.
*/
this.change = new _angular_core.EventEmitter();
}
Object.defineProperty(Dir.prototype, "dir", {
get: /**
* \@docs-private
* @return {?}
*/
function () { return this._dir; },
set: /**
* @param {?} v
* @return {?}
*/
function (v) {
var /** @type {?} */ old = this._dir;
this._dir = v;
if (old !== this._dir && this._isInitialized) {
this.change.emit(this._dir);
}
},
enumerable: true,
configurable: true
});
Object.defineProperty(Dir.prototype, "value", {
/** Current layout direction of the element. */
get: /**
* Current layout direction of the element.
* @return {?}
*/
function () { return this.dir; },
enumerable: true,
configurable: true
});
/** Initialize once default value has been set. */
/**
* Initialize once default value has been set.
* @return {?}
*/
Dir.prototype.ngAfterContentInit = /**
* Initialize once default value has been set.
* @return {?}
*/
function () {
this._isInitialized = true;
};
/**
* @return {?}
*/
Dir.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.change.complete();
};
Dir.decorators = [
{ type: _angular_core.Directive, args: [{
selector: '[dir]',
providers: [{ provide: Directionality, useExisting: Dir }],
host: { '[dir]': 'dir' },
exportAs: 'dir',
},] },
];
/** @nocollapse */
Dir.ctorParameters = function () { return []; };
Dir.propDecorators = {
"change": [{ type: _angular_core.Output, args: ['dirChange',] },],
"dir": [{ type: _angular_core.Input },],
};
return Dir;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var BidiModule = /** @class */ (function () {
function BidiModule() {
}
BidiModule.decorators = [
{ type: _angular_core.NgModule, args: [{
exports: [Dir],
declarations: [Dir],
providers: [
{ provide: DIR_DOCUMENT, useExisting: _angular_common.DOCUMENT },
Directionality,
]
},] },
];
/** @nocollapse */
BidiModule.ctorParameters = function () { return []; };
return BidiModule;
}());
exports.Directionality = Directionality;
exports.DIR_DOCUMENT = DIR_DOCUMENT;
exports.Dir = Dir;
exports.BidiModule = BidiModule;
Object.defineProperty(exports, '__esModule', { value: true });
}
http://requirejs.org/docs/errors.html#mismatch
at makeError (bundle.min.js:173)
at intakeDefines (bundle.min.js:1259)
at bundle.min.js:1457
at e.invokeTask (zone.min.js:1)
at r.runTask (zone.min.js:1)
at t.invokeTask (zone.min.js:1)
at a.useG.invoke (zone.min.js:1)
at n (zone.min.js:1)```