circular dependency angular 6












1















i've uploaded the whole project in enter link description here



after many attemts of i got this error each time i run the same code and get these errors :




`ERROR in node_modules/@ngrx/store-devtools/src/actions.d.ts(18,21):
error TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(22,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(26,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(31,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(36,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(40,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(44,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(51,21): error
TS1039: Initializers are not allowed
node_modules/@ngrx/store-devtools/src/actions.d.ts(56,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(61,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(66,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(71,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(76,21): error
TS1039: Initializers are not allowed



i 「wdm」: Failed to compile. `




enter image description here



with some chance without changing anything in code the project compiles succefully but with another error wich is Uncaught Error: Can't resolve all parameters for CoinEffects: (?, [object Object]).



after many searches i discovred that it's about circular dependency it tried to fixed but in vain is it about dependencies or something else !!!?










share|improve this question

























  • It looks like there's an error in a module's source code that's a dependency of your project. This is on the developers of @ngrx/store-devtools not anything you did. Either upgrade to a later version of @ngrx/store-devtools or use a different version of TypeScript compiler that allows that language construct without throwing an error.

    – amphetamachine
    Nov 13 '18 at 20:50






  • 1





    thank you @amphetamachine the first error disappears it's all about versions I changed the version of store-devtools and et goes well .. but the second one stills Can't resolve all parameters for CoinEffects: (?, [object Object])

    – Zridi Salahddine
    Nov 14 '18 at 8:47
















1















i've uploaded the whole project in enter link description here



after many attemts of i got this error each time i run the same code and get these errors :




`ERROR in node_modules/@ngrx/store-devtools/src/actions.d.ts(18,21):
error TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(22,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(26,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(31,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(36,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(40,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(44,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(51,21): error
TS1039: Initializers are not allowed
node_modules/@ngrx/store-devtools/src/actions.d.ts(56,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(61,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(66,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(71,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(76,21): error
TS1039: Initializers are not allowed



i 「wdm」: Failed to compile. `




enter image description here



with some chance without changing anything in code the project compiles succefully but with another error wich is Uncaught Error: Can't resolve all parameters for CoinEffects: (?, [object Object]).



after many searches i discovred that it's about circular dependency it tried to fixed but in vain is it about dependencies or something else !!!?










share|improve this question

























  • It looks like there's an error in a module's source code that's a dependency of your project. This is on the developers of @ngrx/store-devtools not anything you did. Either upgrade to a later version of @ngrx/store-devtools or use a different version of TypeScript compiler that allows that language construct without throwing an error.

    – amphetamachine
    Nov 13 '18 at 20:50






  • 1





    thank you @amphetamachine the first error disappears it's all about versions I changed the version of store-devtools and et goes well .. but the second one stills Can't resolve all parameters for CoinEffects: (?, [object Object])

    – Zridi Salahddine
    Nov 14 '18 at 8:47














1












1








1


1






i've uploaded the whole project in enter link description here



after many attemts of i got this error each time i run the same code and get these errors :




`ERROR in node_modules/@ngrx/store-devtools/src/actions.d.ts(18,21):
error TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(22,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(26,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(31,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(36,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(40,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(44,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(51,21): error
TS1039: Initializers are not allowed
node_modules/@ngrx/store-devtools/src/actions.d.ts(56,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(61,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(66,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(71,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(76,21): error
TS1039: Initializers are not allowed



i 「wdm」: Failed to compile. `




enter image description here



with some chance without changing anything in code the project compiles succefully but with another error wich is Uncaught Error: Can't resolve all parameters for CoinEffects: (?, [object Object]).



after many searches i discovred that it's about circular dependency it tried to fixed but in vain is it about dependencies or something else !!!?










share|improve this question
















i've uploaded the whole project in enter link description here



after many attemts of i got this error each time i run the same code and get these errors :




`ERROR in node_modules/@ngrx/store-devtools/src/actions.d.ts(18,21):
error TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(22,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(26,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(31,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(36,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(40,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(44,21): error
TS1039: Initializers are not allowed in ambient contexts.



node_modules/@ngrx/store-devtools/src/actions.d.ts(51,21): error
TS1039: Initializers are not allowed
node_modules/@ngrx/store-devtools/src/actions.d.ts(56,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(61,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(66,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(71,21): error
TS1039: Initializers are not allowed



node_modules/@ngrx/store-devtools/src/actions.d.ts(76,21): error
TS1039: Initializers are not allowed



i 「wdm」: Failed to compile. `




enter image description here



with some chance without changing anything in code the project compiles succefully but with another error wich is Uncaught Error: Can't resolve all parameters for CoinEffects: (?, [object Object]).



after many searches i discovred that it's about circular dependency it tried to fixed but in vain is it about dependencies or something else !!!?







angular typescript google-chrome-devtools ngrx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 27 '18 at 10:01









progm

304119




304119










asked Nov 13 '18 at 18:08









Zridi SalahddineZridi Salahddine

63




63













  • It looks like there's an error in a module's source code that's a dependency of your project. This is on the developers of @ngrx/store-devtools not anything you did. Either upgrade to a later version of @ngrx/store-devtools or use a different version of TypeScript compiler that allows that language construct without throwing an error.

    – amphetamachine
    Nov 13 '18 at 20:50






  • 1





    thank you @amphetamachine the first error disappears it's all about versions I changed the version of store-devtools and et goes well .. but the second one stills Can't resolve all parameters for CoinEffects: (?, [object Object])

    – Zridi Salahddine
    Nov 14 '18 at 8:47



















  • It looks like there's an error in a module's source code that's a dependency of your project. This is on the developers of @ngrx/store-devtools not anything you did. Either upgrade to a later version of @ngrx/store-devtools or use a different version of TypeScript compiler that allows that language construct without throwing an error.

    – amphetamachine
    Nov 13 '18 at 20:50






  • 1





    thank you @amphetamachine the first error disappears it's all about versions I changed the version of store-devtools and et goes well .. but the second one stills Can't resolve all parameters for CoinEffects: (?, [object Object])

    – Zridi Salahddine
    Nov 14 '18 at 8:47

















It looks like there's an error in a module's source code that's a dependency of your project. This is on the developers of @ngrx/store-devtools not anything you did. Either upgrade to a later version of @ngrx/store-devtools or use a different version of TypeScript compiler that allows that language construct without throwing an error.

– amphetamachine
Nov 13 '18 at 20:50





It looks like there's an error in a module's source code that's a dependency of your project. This is on the developers of @ngrx/store-devtools not anything you did. Either upgrade to a later version of @ngrx/store-devtools or use a different version of TypeScript compiler that allows that language construct without throwing an error.

– amphetamachine
Nov 13 '18 at 20:50




1




1





thank you @amphetamachine the first error disappears it's all about versions I changed the version of store-devtools and et goes well .. but the second one stills Can't resolve all parameters for CoinEffects: (?, [object Object])

– Zridi Salahddine
Nov 14 '18 at 8:47





thank you @amphetamachine the first error disappears it's all about versions I changed the version of store-devtools and et goes well .. but the second one stills Can't resolve all parameters for CoinEffects: (?, [object Object])

– Zridi Salahddine
Nov 14 '18 at 8:47












2 Answers
2






active

oldest

votes


















1














You need to set the same version for packages @ngrx/store and @ngrx/store-devtools in package.json.






share|improve this answer

































    -2














    Thank u i discovered that it s all about packages nothing wrong in code .






    share|improve this answer
























    • Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

      – amphetamachine
      Nov 14 '18 at 15:26











    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%2f53287075%2fcircular-dependency-angular-6%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    You need to set the same version for packages @ngrx/store and @ngrx/store-devtools in package.json.






    share|improve this answer






























      1














      You need to set the same version for packages @ngrx/store and @ngrx/store-devtools in package.json.






      share|improve this answer




























        1












        1








        1







        You need to set the same version for packages @ngrx/store and @ngrx/store-devtools in package.json.






        share|improve this answer















        You need to set the same version for packages @ngrx/store and @ngrx/store-devtools in package.json.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 27 '18 at 9:48

























        answered Dec 26 '18 at 23:44









        progmprogm

        304119




        304119

























            -2














            Thank u i discovered that it s all about packages nothing wrong in code .






            share|improve this answer
























            • Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

              – amphetamachine
              Nov 14 '18 at 15:26
















            -2














            Thank u i discovered that it s all about packages nothing wrong in code .






            share|improve this answer
























            • Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

              – amphetamachine
              Nov 14 '18 at 15:26














            -2












            -2








            -2







            Thank u i discovered that it s all about packages nothing wrong in code .






            share|improve this answer













            Thank u i discovered that it s all about packages nothing wrong in code .







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 14 '18 at 9:50









            Zridi SalahddineZridi Salahddine

            63




            63













            • Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

              – amphetamachine
              Nov 14 '18 at 15:26



















            • Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

              – amphetamachine
              Nov 14 '18 at 15:26

















            Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

            – amphetamachine
            Nov 14 '18 at 15:26





            Usually if a module depends on a specific version of TypeScript, it should declare it in its own package.json file. That way, package managers can look at it and decide which version to use so it can be compatible with all your dependencies. It doesn't always happen.

            – amphetamachine
            Nov 14 '18 at 15:26


















            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%2f53287075%2fcircular-dependency-angular-6%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

            Florida Star v. B. J. F.

            Danny Elfman

            Lugert, Oklahoma