模块解析失败,Webstorm,Ionic应用程序

时间:2018-07-27 08:35:25

标签: node.js angular typescript

我正在使用IDE WebStorm与Ionic,Cordova,Angular开发混合应用程序,但出现此错误。我不知道该如何解决。

 SCRIPT5022: SCRIPT5022: Module parse failed: Unexpected token (48:0)
 You may need an appropriate loader to handle this file type.
| @Component({

|   selector: 'page-pieces',template:/*ion-inline-start:"C:\Users\oueslati 
 sirine\test\src\pages\pieces\pieces.html"*/'!-- -->\nion-header>\n  ion- 
 navbar color="primary">\n    ion-title>\n      span ion-text>Pieces/span>\n    
 /ion-title>\n  /ion-navbar>\n\n  !--  -->\n  ion-toolbar padding 
 color="light">\n    p ion-text no-margin class="text-white">\n      
 strong>4/strong> results found!\n    /p>\n  /ion-toolbar>\n\n/ion- 
 header>\n\nion-content padding class="trips detail-bg">\n  !--list of trips- 
 ->\n  !--div class="trip card" *ngFor="let p of info" margin-bottom>\n    
 div class="background border-bottom">\n      div class="background-filter 
 rlt"  >\n        div class="align-bottom" padding-left padding-right>\n          
 h6 class="pull-left text-white" ion-text> Nom :{{p.nom }}/h6>\n          h6 
 class="pull-right text-white" ion-text>{{p.robot }}/h6>\n          h
 main.js (91,1)

0 个答案:

没有答案