Angular5 :polyfills.ts & \main.ts is missing from the TypeScript compilation

660 views
Skip to first unread message

Jalle

unread,
Mar 4, 2018, 4:18:24 AM3/4/18
to Angular and AngularJS discussion


This is my Angular5 project structure.



 

Both `tsconfig.app.json` and `package.json` contain this section 

     "include": [
          "/src/main.ts",
          "/src/polyfills.ts"
        ]

But no matter what I try I still get this error:

    \polyfills.ts & \main.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

Anyone has idea what's missing here?




 

Reply all
Reply to author
Forward
0 new messages