Angular 7 : “ng serve --aot” fails the after a file changeUnknown compiler option 'files' launching ./node_modules/.bin/ng-xi18nAngular 5 ,Three Js errorIonic 3 and Angular 4 - Karma does not run the unit tests instantly. It takes a minute or above to start. Whats causing the slowness?npm ERR! notarget No matching version found for jasmine-core@~2.9.0HTTP_INTERCEPTORS and in general i face problems of “ not found” but when i use intercept of http my app not work?cannot submit a form in angular 4marker abnormal in istanbul coverage report in Angularinstallation npm failed for an existing project with angular 4

What do you call someone who asks many questions?

One verb to replace 'be a member of' a club

How do I deal with an unproductive colleague in a small company?

What does “the session was packed” mean in this context?

Venezuelan girlfriend wants to travel the USA to be with me. What is the process?

iPad being using in wall mount battery swollen

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

How did the Super Star Destroyer Executor get destroyed exactly?

Is there an expression that means doing something right before you will need it rather than doing it in case you might need it?

Would Slavery Reparations be considered Bills of Attainder and hence Illegal?

Can the Meissner effect explain very large floating structures?

Mathematica command that allows it to read my intentions

Is it acceptable for a professor to tell male students to not think that they are smarter than female students?

What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?

What is the idiomatic way to say "clothing fits"?

Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?

How seriously should I take size and weight limits of hand luggage?

Why didn't Miles's spider sense work before?

Extract rows of a table, that include less than x NULLs

How can saying a song's name be a copyright violation?

Short story with a alien planet, government officials must wear exploding medallions

Can compressed videos be decoded back to their uncompresed original format?

Apex Framework / library for consuming REST services

What are some good books on Machine Learning and AI like Krugman, Wells and Graddy's "Essentials of Economics"



Angular 7 : “ng serve --aot” fails the after a file change


Unknown compiler option 'files' launching ./node_modules/.bin/ng-xi18nAngular 5 ,Three Js errorIonic 3 and Angular 4 - Karma does not run the unit tests instantly. It takes a minute or above to start. Whats causing the slowness?npm ERR! notarget No matching version found for jasmine-core@~2.9.0HTTP_INTERCEPTORS and in general i face problems of “ not found” but when i use intercept of http my app not work?cannot submit a form in angular 4marker abnormal in istanbul coverage report in Angularinstallation npm failed for an existing project with angular 4













3















"ng serve --aot" which succeeds first time, fails after a file change every time with the following error




ERROR in Debug Failure. False expression: Host should not return a redirect source file from `getSourceFile`
i 「wdm」: Failed to compile.


Re-running the command works again.



With respect to contents posted in "https://github.com/angular/angular-cli/issues/11835", I have tried down grading "@angular/compiler-cli": to version '6.1.1'. It did not help.



contents of my package.json are as follows,







"name": "matrix-dashboards",
"version": "0.0.0",
"scripts":
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
,
"private": true,
"dependencies":
"@angular/animations": "^7.1.4",
"@angular/cdk": "^7.2.0",
"@angular/common": "~7.1.0",
"@angular/compiler": "^7.1.4",
"@angular/core": "~7.1.0",
"@angular/forms": "~7.1.0",
"@angular/material": "^7.2.0",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/router": "~7.1.0",
"core-js": "^2.5.4",
"crypto-js": "^3.1.9-1",
"font-awesome": "^4.7.0",
"materialize-css": "^1.0.0",
"roboto-fontface": "^0.10.0",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26"
,
"devDependencies":
"@angular-devkit/build-angular": "~0.11.0",
"@angular/cli": "~7.1.2",
"@angular/compiler-cli": "~7.1.0",
"@angular/language-service": "~7.1.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"






Appreciate any help, to help me find a way to get "ng serve --aot" to compile the code properly every time a file is changed. Thanks










share|improve this question


























    3















    "ng serve --aot" which succeeds first time, fails after a file change every time with the following error




    ERROR in Debug Failure. False expression: Host should not return a redirect source file from `getSourceFile`
    i 「wdm」: Failed to compile.


    Re-running the command works again.



    With respect to contents posted in "https://github.com/angular/angular-cli/issues/11835", I have tried down grading "@angular/compiler-cli": to version '6.1.1'. It did not help.



    contents of my package.json are as follows,







    "name": "matrix-dashboards",
    "version": "0.0.0",
    "scripts":
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
    ,
    "private": true,
    "dependencies":
    "@angular/animations": "^7.1.4",
    "@angular/cdk": "^7.2.0",
    "@angular/common": "~7.1.0",
    "@angular/compiler": "^7.1.4",
    "@angular/core": "~7.1.0",
    "@angular/forms": "~7.1.0",
    "@angular/material": "^7.2.0",
    "@angular/platform-browser": "~7.1.0",
    "@angular/platform-browser-dynamic": "~7.1.0",
    "@angular/router": "~7.1.0",
    "core-js": "^2.5.4",
    "crypto-js": "^3.1.9-1",
    "font-awesome": "^4.7.0",
    "materialize-css": "^1.0.0",
    "roboto-fontface": "^0.10.0",
    "rxjs": "~6.3.3",
    "tslib": "^1.9.0",
    "zone.js": "~0.8.26"
    ,
    "devDependencies":
    "@angular-devkit/build-angular": "~0.11.0",
    "@angular/cli": "~7.1.2",
    "@angular/compiler-cli": "~7.1.0",
    "@angular/language-service": "~7.1.0",
    "@types/node": "~8.9.4",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.1.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.6"






    Appreciate any help, to help me find a way to get "ng serve --aot" to compile the code properly every time a file is changed. Thanks










    share|improve this question
























      3












      3








      3


      1






      "ng serve --aot" which succeeds first time, fails after a file change every time with the following error




      ERROR in Debug Failure. False expression: Host should not return a redirect source file from `getSourceFile`
      i 「wdm」: Failed to compile.


      Re-running the command works again.



      With respect to contents posted in "https://github.com/angular/angular-cli/issues/11835", I have tried down grading "@angular/compiler-cli": to version '6.1.1'. It did not help.



      contents of my package.json are as follows,







      "name": "matrix-dashboards",
      "version": "0.0.0",
      "scripts":
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
      ,
      "private": true,
      "dependencies":
      "@angular/animations": "^7.1.4",
      "@angular/cdk": "^7.2.0",
      "@angular/common": "~7.1.0",
      "@angular/compiler": "^7.1.4",
      "@angular/core": "~7.1.0",
      "@angular/forms": "~7.1.0",
      "@angular/material": "^7.2.0",
      "@angular/platform-browser": "~7.1.0",
      "@angular/platform-browser-dynamic": "~7.1.0",
      "@angular/router": "~7.1.0",
      "core-js": "^2.5.4",
      "crypto-js": "^3.1.9-1",
      "font-awesome": "^4.7.0",
      "materialize-css": "^1.0.0",
      "roboto-fontface": "^0.10.0",
      "rxjs": "~6.3.3",
      "tslib": "^1.9.0",
      "zone.js": "~0.8.26"
      ,
      "devDependencies":
      "@angular-devkit/build-angular": "~0.11.0",
      "@angular/cli": "~7.1.2",
      "@angular/compiler-cli": "~7.1.0",
      "@angular/language-service": "~7.1.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.1.1",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.6"






      Appreciate any help, to help me find a way to get "ng serve --aot" to compile the code properly every time a file is changed. Thanks










      share|improve this question














      "ng serve --aot" which succeeds first time, fails after a file change every time with the following error




      ERROR in Debug Failure. False expression: Host should not return a redirect source file from `getSourceFile`
      i 「wdm」: Failed to compile.


      Re-running the command works again.



      With respect to contents posted in "https://github.com/angular/angular-cli/issues/11835", I have tried down grading "@angular/compiler-cli": to version '6.1.1'. It did not help.



      contents of my package.json are as follows,







      "name": "matrix-dashboards",
      "version": "0.0.0",
      "scripts":
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
      ,
      "private": true,
      "dependencies":
      "@angular/animations": "^7.1.4",
      "@angular/cdk": "^7.2.0",
      "@angular/common": "~7.1.0",
      "@angular/compiler": "^7.1.4",
      "@angular/core": "~7.1.0",
      "@angular/forms": "~7.1.0",
      "@angular/material": "^7.2.0",
      "@angular/platform-browser": "~7.1.0",
      "@angular/platform-browser-dynamic": "~7.1.0",
      "@angular/router": "~7.1.0",
      "core-js": "^2.5.4",
      "crypto-js": "^3.1.9-1",
      "font-awesome": "^4.7.0",
      "materialize-css": "^1.0.0",
      "roboto-fontface": "^0.10.0",
      "rxjs": "~6.3.3",
      "tslib": "^1.9.0",
      "zone.js": "~0.8.26"
      ,
      "devDependencies":
      "@angular-devkit/build-angular": "~0.11.0",
      "@angular/cli": "~7.1.2",
      "@angular/compiler-cli": "~7.1.0",
      "@angular/language-service": "~7.1.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.1.1",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.6"






      Appreciate any help, to help me find a way to get "ng serve --aot" to compile the code properly every time a file is changed. Thanks







      "name": "matrix-dashboards",
      "version": "0.0.0",
      "scripts":
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
      ,
      "private": true,
      "dependencies":
      "@angular/animations": "^7.1.4",
      "@angular/cdk": "^7.2.0",
      "@angular/common": "~7.1.0",
      "@angular/compiler": "^7.1.4",
      "@angular/core": "~7.1.0",
      "@angular/forms": "~7.1.0",
      "@angular/material": "^7.2.0",
      "@angular/platform-browser": "~7.1.0",
      "@angular/platform-browser-dynamic": "~7.1.0",
      "@angular/router": "~7.1.0",
      "core-js": "^2.5.4",
      "crypto-js": "^3.1.9-1",
      "font-awesome": "^4.7.0",
      "materialize-css": "^1.0.0",
      "roboto-fontface": "^0.10.0",
      "rxjs": "~6.3.3",
      "tslib": "^1.9.0",
      "zone.js": "~0.8.26"
      ,
      "devDependencies":
      "@angular-devkit/build-angular": "~0.11.0",
      "@angular/cli": "~7.1.2",
      "@angular/compiler-cli": "~7.1.0",
      "@angular/language-service": "~7.1.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.1.1",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.6"







      "name": "matrix-dashboards",
      "version": "0.0.0",
      "scripts":
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
      ,
      "private": true,
      "dependencies":
      "@angular/animations": "^7.1.4",
      "@angular/cdk": "^7.2.0",
      "@angular/common": "~7.1.0",
      "@angular/compiler": "^7.1.4",
      "@angular/core": "~7.1.0",
      "@angular/forms": "~7.1.0",
      "@angular/material": "^7.2.0",
      "@angular/platform-browser": "~7.1.0",
      "@angular/platform-browser-dynamic": "~7.1.0",
      "@angular/router": "~7.1.0",
      "core-js": "^2.5.4",
      "crypto-js": "^3.1.9-1",
      "font-awesome": "^4.7.0",
      "materialize-css": "^1.0.0",
      "roboto-fontface": "^0.10.0",
      "rxjs": "~6.3.3",
      "tslib": "^1.9.0",
      "zone.js": "~0.8.26"
      ,
      "devDependencies":
      "@angular-devkit/build-angular": "~0.11.0",
      "@angular/cli": "~7.1.2",
      "@angular/compiler-cli": "~7.1.0",
      "@angular/language-service": "~7.1.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.1.1",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.6"







      angular






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 19 '18 at 17:18









      kathikeyan Akathikeyan A

      118213




      118213






















          4 Answers
          4






          active

          oldest

          votes


















          1














          I was having this same exact problem. After wrestling with it for awhile I deleted my node_modules and package-lock.json files then I ran 'npm install'.... that fixed it!! Good luck.






          share|improve this answer


















          • 1





            in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

            – kathikeyan A
            Jan 3 at 9:47











          • @kathikeyanA Can you give more details on your solution please. Thank you

            – Hristo Enev
            Feb 3 at 5:08



















          1














          Hope this helps other people with such error.



          What I found as a solution what an issue in the official Angular CLI repository. In my case the issue was caused by duplicated typing files used for typescript - check here.



          After finding the module that was causing the issue through troubleshooting, I was able to fix it. All thanks to the contributors of the issue.






          share|improve this answer






























            0














            To expand on @Hristo Enev's answer, the "paths" typescript option solution worked for me. No need to run any extra scripts to delete files. In my case, I had duplicate "source-map" typings, so I added this to my tsconfig:



            "paths":
            "source-map": ["node_modules/source-map"]






            share|improve this answer






























              0














              For me the error was caused by the following npm dependency:



              "@sentry/types": "^5.0.0"





              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function ()
                StackExchange.using("externalEditor", function ()
                StackExchange.using("snippets", function ()
                StackExchange.snippets.init();
                );
                );
                , "code-snippets");

                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "1"
                ;
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function()
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled)
                StackExchange.using("snippets", function()
                createEditor();
                );

                else
                createEditor();

                );

                function createEditor()
                StackExchange.prepareEditor(
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader:
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                ,
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                );



                );













                draft saved

                draft discarded


















                StackExchange.ready(
                function ()
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53856246%2fangular-7-ng-serve-aot-fails-the-after-a-file-change%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                1














                I was having this same exact problem. After wrestling with it for awhile I deleted my node_modules and package-lock.json files then I ran 'npm install'.... that fixed it!! Good luck.






                share|improve this answer


















                • 1





                  in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

                  – kathikeyan A
                  Jan 3 at 9:47











                • @kathikeyanA Can you give more details on your solution please. Thank you

                  – Hristo Enev
                  Feb 3 at 5:08
















                1














                I was having this same exact problem. After wrestling with it for awhile I deleted my node_modules and package-lock.json files then I ran 'npm install'.... that fixed it!! Good luck.






                share|improve this answer


















                • 1





                  in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

                  – kathikeyan A
                  Jan 3 at 9:47











                • @kathikeyanA Can you give more details on your solution please. Thank you

                  – Hristo Enev
                  Feb 3 at 5:08














                1












                1








                1







                I was having this same exact problem. After wrestling with it for awhile I deleted my node_modules and package-lock.json files then I ran 'npm install'.... that fixed it!! Good luck.






                share|improve this answer













                I was having this same exact problem. After wrestling with it for awhile I deleted my node_modules and package-lock.json files then I ran 'npm install'.... that fixed it!! Good luck.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 2 at 16:23









                Patrick BlairPatrick Blair

                111




                111







                • 1





                  in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

                  – kathikeyan A
                  Jan 3 at 9:47











                • @kathikeyanA Can you give more details on your solution please. Thank you

                  – Hristo Enev
                  Feb 3 at 5:08













                • 1





                  in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

                  – kathikeyan A
                  Jan 3 at 9:47











                • @kathikeyanA Can you give more details on your solution please. Thank you

                  – Hristo Enev
                  Feb 3 at 5:08








                1




                1





                in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

                – kathikeyan A
                Jan 3 at 9:47





                in my case I had a components which was not imported into the desired module, which when sorted out fixed the issue. Thanks to the useless error messages which misled me into all wrong directions.

                – kathikeyan A
                Jan 3 at 9:47













                @kathikeyanA Can you give more details on your solution please. Thank you

                – Hristo Enev
                Feb 3 at 5:08






                @kathikeyanA Can you give more details on your solution please. Thank you

                – Hristo Enev
                Feb 3 at 5:08














                1














                Hope this helps other people with such error.



                What I found as a solution what an issue in the official Angular CLI repository. In my case the issue was caused by duplicated typing files used for typescript - check here.



                After finding the module that was causing the issue through troubleshooting, I was able to fix it. All thanks to the contributors of the issue.






                share|improve this answer



























                  1














                  Hope this helps other people with such error.



                  What I found as a solution what an issue in the official Angular CLI repository. In my case the issue was caused by duplicated typing files used for typescript - check here.



                  After finding the module that was causing the issue through troubleshooting, I was able to fix it. All thanks to the contributors of the issue.






                  share|improve this answer

























                    1












                    1








                    1







                    Hope this helps other people with such error.



                    What I found as a solution what an issue in the official Angular CLI repository. In my case the issue was caused by duplicated typing files used for typescript - check here.



                    After finding the module that was causing the issue through troubleshooting, I was able to fix it. All thanks to the contributors of the issue.






                    share|improve this answer













                    Hope this helps other people with such error.



                    What I found as a solution what an issue in the official Angular CLI repository. In my case the issue was caused by duplicated typing files used for typescript - check here.



                    After finding the module that was causing the issue through troubleshooting, I was able to fix it. All thanks to the contributors of the issue.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 3 at 11:36









                    Hristo EnevHristo Enev

                    1,6291019




                    1,6291019





















                        0














                        To expand on @Hristo Enev's answer, the "paths" typescript option solution worked for me. No need to run any extra scripts to delete files. In my case, I had duplicate "source-map" typings, so I added this to my tsconfig:



                        "paths":
                        "source-map": ["node_modules/source-map"]






                        share|improve this answer



























                          0














                          To expand on @Hristo Enev's answer, the "paths" typescript option solution worked for me. No need to run any extra scripts to delete files. In my case, I had duplicate "source-map" typings, so I added this to my tsconfig:



                          "paths":
                          "source-map": ["node_modules/source-map"]






                          share|improve this answer

























                            0












                            0








                            0







                            To expand on @Hristo Enev's answer, the "paths" typescript option solution worked for me. No need to run any extra scripts to delete files. In my case, I had duplicate "source-map" typings, so I added this to my tsconfig:



                            "paths":
                            "source-map": ["node_modules/source-map"]






                            share|improve this answer













                            To expand on @Hristo Enev's answer, the "paths" typescript option solution worked for me. No need to run any extra scripts to delete files. In my case, I had duplicate "source-map" typings, so I added this to my tsconfig:



                            "paths":
                            "source-map": ["node_modules/source-map"]







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 8 at 22:14









                            ge022ge022

                            196




                            196





















                                0














                                For me the error was caused by the following npm dependency:



                                "@sentry/types": "^5.0.0"





                                share|improve this answer



























                                  0














                                  For me the error was caused by the following npm dependency:



                                  "@sentry/types": "^5.0.0"





                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    For me the error was caused by the following npm dependency:



                                    "@sentry/types": "^5.0.0"





                                    share|improve this answer













                                    For me the error was caused by the following npm dependency:



                                    "@sentry/types": "^5.0.0"






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 14 hours ago









                                    LuJaksLuJaks

                                    169112




                                    169112



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid


                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.

                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53856246%2fangular-7-ng-serve-aot-fails-the-after-a-file-change%23new-answer', 'question_page');

                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                                        2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

                                        Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme