-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaround
Description
Reproduction
- Update @angular/material to rc.1.
ng update --next @angular/material @angular/cdk
- Build applicaton with @angular/bazel and
@angular/material
as adeps
in yourng_module
.
Expected Behavior
It should run without errors in ts_devserver
Actual Behavior
When @angular/material
is a deps
of your ng_module
bazel rule it thorws an error runtime.
Uncaught Error: Mismatched anonymous define() module:
This is due to the fact that the published bundles/material.umd.js
has no amd id. The published umd bundle looks like:
(function (factory) {
typeof define === 'function' && define.amd ? define(factory) :
factory();
}((function () { 'use strict';
/* ....license */
});
When an id is added, it works as expected.
typeof define === 'function' && define.amd ? define('@angular/material', factory) :
Environment
Angular CLI: 9.0.0-rc.2
Node: 10.16.3
OS: darwin x64
Angular: 9.0.0-rc.2
... animations, bazel, cli, common, compiler, compiler-cli, core
... forms, language-service, localize, platform-browser
... platform-browser-dynamic, router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.900.0-rc.2
@angular-devkit/core 9.0.0-rc.2
@angular-devkit/schematics 9.0.0-rc.2
@angular/cdk 9.0.0-rc.1
@angular/material 9.0.0-rc.1
@angular/material-moment-adapter 9.0.0-rc.1
@bazel/bazel 1.1.0
@bazel/bazel-darwin_x64 1.1.0
@bazel/benchmark-runner 0.1.0
@bazel/buildifier 0.28.0
@bazel/buildifier-darwin_x64 0.28.0
@bazel/hide-bazel-files 0.39.1
@bazel/ibazel v0.10.3
@bazel/karma 0.39.1
@bazel/protractor 0.39.1
@bazel/rollup 0.39.1
@bazel/terser 0.39.1
@bazel/typescript 0.39.1
@schematics/angular 9.0.0-rc.2
@schematics/update 0.900.0-rc.2
rxjs 6.5.3
typescript 3.6.4
jbedard
Metadata
Metadata
Assignees
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaround