最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Uncaught TypeError: pre,template,textarea,script,style is not iterable - Stack Overflow

programmeradmin5浏览0评论

I am encountering this problem while my cordova app tries to run on my smartphone.

I'm using angular cli. I searched for the error specified and what I found was a closed issue on github where the solution (which worked for many) is to put the assets listed in .angular-cli.json in an array. The point is that my assets are already in an array. I've tried to look further but that issue is the only thing I've found.

However, compiling webpacks is successful and not by mistakes. The only mistake appears in the browser and is that of the title.

I have no idea what to do.

I am encountering this problem while my cordova app tries to run on my smartphone.

I'm using angular cli. I searched for the error specified and what I found was a closed issue on github where the solution (which worked for many) is to put the assets listed in .angular-cli.json in an array. The point is that my assets are already in an array. I've tried to look further but that issue is the only thing I've found.

However, compiling webpacks is successful and not by mistakes. The only mistake appears in the browser and is that of the title.

I have no idea what to do.

Share Improve this question asked Oct 19, 2017 at 16:08 Nad GNad G 5172 gold badges10 silver badges21 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 46

This can be caused by lack of ES6 support. Can you try adding/uncommenting following in your Polyfill.ts

import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论