Ionic serve gives an error


#1

Hi to all
when I run ionic serve I get the following error in terminal

[app-scripts]             A computed property name in an interface must directly refer to a built-in symbol.
[app-scripts]      L137:  * This must be stored in the view rather than using `data` as a marker so that
[app-scripts]      L138:  * we can properly support embedded views. Otherwise, when exiting a child view
[app-scripts]             A computed property name in an interface must directly refer to a built-in symbol.
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 87
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 94
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 103
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 109
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 111
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 113
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 115
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 122
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 131
[app-scripts] [15:54:15]  typescript: ...awrooz-working-on-it/node_modules/@angular/core/src/render3/interfaces/view.d.ts, line: 137
[app-scripts] [15:54:15]  typescript: ...pp/nawrooz-working-on-it/node_modules/@angular/core/src/sanitization/bypass.d.ts, line: 23
[app-scripts] [15:54:15]  typescript: ...pp/nawrooz-working-on-it/node_modules/@angular/core/src/sanitization/bypass.d.ts, line: 31
[app-scripts] [15:54:15]  typescript: ...pp/nawrooz-working-on-it/node_modules/@angular/core/src/sanitization/bypass.d.ts, line: 39
[app-scripts] [15:54:15]  typescript: ...pp/nawrooz-working-on-it/node_modules/@angular/core/src/sanitization/bypass.d.ts, line: 47
[app-scripts] [15:54:15]  typescript: ...pp/nawrooz-working-on-it/node_modules/@angular/core/src/sanitization/bypass.d.ts, line: 55
[app-scripts] [15:54:15]  typescript: ...pp/nawrooz-working-on-it/node_modules/@angular/core/src/sanitization/bypass.d.ts, line: 63
[app-scripts]       L23:  export interface TrustedHtmlString extends TrustedString {
[app-scripts]       L24:      [BRAND]: BypassType.Html;
[app-scripts]             A computed property name in an interface must directly refer to a built-in symbol.

this is my console error


But if I save a .ts file any file from the project then the app start without any error.

this is ionic info

√ Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)  : 4.2.1 (C:\Users\developer.web\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : not available
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 9 other plugins)

System:

   NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

any help please?


Refused to apply style from 'http://localhost:8100/build/main.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
#2

I’m getting this same error, did you manage to solve this?


#3

sorry!
I moved my src folder into a new created project,


#4

Hi,please don’t copy folder only backup hole project or copy coding and paste.otherwise it will be shown Error,Bcoz of platform and file location is must important,Please copy coding or hole project.


#5

I didn’t try the whole project, only copied src folder and then fixed those errors regarding paths and etc


#6

hi,its ok.You have bitbucket account?if you have please store that,after pull or download that project then you install the npm and add the platform it will be work.


#7

sorry!
you can push into github, then u send me the link


#8

Hi,You can upload sample application,then download install the npm , after add platform,but i will give you my github link what you want download and npm install after run,it will be run.
Mostly i refer to simple student portal project,please use and try it,may be work.