1
私のプロジェクトをAngular2 "2.0.0-beta.17"からAngular2 "2.0.0-rc.1"モジュールが見つかりません:エラー: 'angular2/bundles/angular2-polyfills'モジュールを解決できません。
に移行していますしかし、私のプロジェクトを構築しながら、私は次のエラーを取得する:
を次のようにUncaught Error: Cannot find module "angular2/bundles/angular2-polyfills"
Uncaught reflect-metadata shim is required when using class decorators
Uncaught TypeError: Cannot read property 'isDefaultChangeDetectionStrategy' of undefined
CMD
ERROR in multi polyfills
Module not found: Error: Cannot resolve module 'angular2/bundles/angular2-polyfills' in C:\Users\akhilesh.kumar\Desktop\ang17
@ multi polyfills
に、ブラウザのコンソールで、私はfollowigエラーを取得する私のWebPACKのconfigがあります
config.entry = isTest ? {} : {
'polyfills': ['es6-shim/es6-shim.js', 'angular2/bundles/angular2-polyfills'],
'vendor': './src/vendor.ts',
'app': './src/bootstrap.ts' // our angular app
};
config.module = {
preLoaders: isTest ? [] : [{test: /\.ts$/, loader: 'tslint'}],
loaders: [......],
postLoaders: [],
noParse: [/.+zone\.js\/dist\/.+/, /.+angular2\/bundles\/.+/, /angular2-polyfills\.js/]
};
私はWebPACKのが得意ではないんです。では、これらのコードについてはどうでしょうか。上記のスクリプトを追加した後、これらで何をすべきですか? –
動作していますが、エラーが表示されます。「キャッチされていないエラー:モジュール「angular2/bundles/angular2-polyfills」が見つかりません」 –