2017-10-30 3 views
0

は私が手:IE11ポリマーDOMモジュールは、すでに定義されたIE11で

などその完全に罰金クロム、エッジ、オン
A custom element with name 'dom-module' has already been defined. 

。何か案が?

const sourcesStream = mergeStream(project.sources(), project.dependencies()) 
    .pipe(sourcesHtmlSplitter.split()) 
    .pipe(gulpif(/\.js$/, babel({ 
     presets: ["env", { 
      "targets": { 
       "chrome": 52, 
       "browsers": ["ie 11"] 
      }] 
    }))) 
    .pipe(gulpif(/\.js$/, uglify({ 
     compress: { 
      drop_console: true 
     } 
    }))) 
    .pipe(gulpif(/\.(png|gif|jpg|svg)$/, imagemin())) 
    .pipe(sourcesHtmlSplitter.rejoin()) 
gulp.task('debug', function() { 
    return sourcesStream 
     .pipe(project.bundler({ 
      sourcemaps: false, 
      inlineCss: true, 
      inlineScripts: true, 
      stripComments: true 
     })) 
     .pipe(gulp.dest(buildDirectory)); 
}); 

依存関係のバージョン:

"polymer-build": "2.1.0", 
"polymer-bundler": "3.1.0", 

答えて

0

あなたが持っているwebcomponentsのバージョンは何

私の一口は、このようになりますか? v1.0.4がエラーを修正したようです。 hereを参照してください(問題はまだ開いていますが)。

また、他にどのパッケージを使用していますか?この問題は、このパッケージの1つから発生する可能性があります。 Here問題はzone.jsから発生します

関連する問題