{"id":68,"date":"2013-06-16T10:28:07","date_gmt":"2013-06-16T10:28:07","guid":{"rendered":"http:\/\/ramandv.com\/blog\/?p=68"},"modified":"2013-07-15T10:04:15","modified_gmt":"2013-07-15T10:04:15","slug":"angularjs-console-log-errors","status":"publish","type":"post","link":"http:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/","title":{"rendered":"Angularjs &#8211; Console log Errors"},"content":{"rendered":"\n<!-- Quick Adsense WordPress Plugin: http:\/\/quickadsense.com\/ -->\n<div class=\"e9e85ee105af8a6a4a383deebf1fa216\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-4917982260456644\";\r\n\/* ramandv.com-ad1 *\/\r\ngoogle_ad_slot = \"9226290554\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<h2>TypeError: Converting circular structure to JSON<\/h2>\n<p>If you encounter this &#8220;TypeError: Converting circular structure to JSON&#8221;, check whether you are trying to $watch any object which has circular reference. It could be the culprit.<\/p>\n<h2>Uncaught Error: No module:<\/h2>\n<h3>possible reasons:<\/h3>\n<pre><code>Syntax : angular.module(name[, requires], configFn);\n<\/code><\/pre>\n<ul>\n<li>\n<p>Check whether &#8220;angular.module&#8221; function is being called without optional square brackets. Basically, if the &#8220;requires&#8221; parameter is not being passed, angular will try to find the module. If the &#8220;requries&#8221; param passed, it will create the module.<\/p>\n<\/li>\n<li>\n<p>you might face the problem when executing the unit test. If you split the angular module source across different files [ie, in only one file, &#8216;angular.module&#8217; is called with &#8216;requires&#8217; parameter. in other files, the module is being retrieved and updated]. In this scenario, karma.conf.js might include the js files like<\/p>\n<\/li>\n<\/ul>\n<p><span> &#8216;app\/js\/**\/*.js&#8217; <\/span><\/p>\n<p>. You might get the above error, if the order of files [moduleA-part1.js, moduleA-part2.js] is changed,<\/p>\n<h2>Uncaught Error: 10 $digest() iterations reached. Aborting! Watchers fired in the last 5 iterations<\/h2>\n<h3>possible reasons:<\/h3>\n<ul>\n<li>\n<p>Main reason is that the function inside $digest cycle returns different value each time. For example,<\/p>\n<ul>\n<li>the function inside $digest cycle, might return different object each time, <\/li>\n<li>or you might try to randomise the return value of the function which is in $digest cycle.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>If $watch is giving this problem, you can use the third paramter in $watch function.  It makes it to compare object for equality rather than for reference. <a href=\"http:\/\/docs.angularjs.org\/api\/ng.$rootScope.Scope#$watch\">&#91;angular doc of $watch&#93;<\/a><\/p>\n<\/li>\n<\/ul>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>TypeError: Converting circular structure to JSON If you encounter this &#8220;TypeError: Converting circular structure to JSON&#8221;, check whether you are trying to $watch any object which has circular reference. It could be the culprit. Uncaught Error: No module: possible reasons: &hellip; <a href=\"http:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Angularjs - Console log Errors - Articles for Developers\" \/>\n<meta property=\"og:description\" content=\"TypeError: Converting circular structure to JSON If you encounter this &#8220;TypeError: Converting circular structure to JSON&#8221;, check whether you are trying to $watch any object which has circular reference. It could be the culprit. Uncaught Error: No module: possible reasons: &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/\" \/>\n<meta property=\"og:site_name\" content=\"Articles for Developers\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-16T10:28:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-15T10:04:15+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ramandv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ramandv.com\/blog\/#website\",\"url\":\"http:\/\/www.ramandv.com\/blog\/\",\"name\":\"Articles for Developers\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ramandv.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/#webpage\",\"url\":\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/\",\"name\":\"Angularjs - Console log Errors - Articles for Developers\",\"isPartOf\":{\"@id\":\"http:\/\/www.ramandv.com\/blog\/#website\"},\"datePublished\":\"2013-06-16T10:28:07+00:00\",\"dateModified\":\"2013-07-15T10:04:15+00:00\",\"author\":{\"@id\":\"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Angularjs &#8211; Console log Errors\"}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658\",\"name\":\"ramandv\",\"url\":\"http:\/\/www.ramandv.com\/blog\/author\/ramandv\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/","og_locale":"en_US","og_type":"article","og_title":"Angularjs - Console log Errors - Articles for Developers","og_description":"TypeError: Converting circular structure to JSON If you encounter this &#8220;TypeError: Converting circular structure to JSON&#8221;, check whether you are trying to $watch any object which has circular reference. It could be the culprit. Uncaught Error: No module: possible reasons: &hellip; Continue reading &rarr;","og_url":"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/","og_site_name":"Articles for Developers","article_published_time":"2013-06-16T10:28:07+00:00","article_modified_time":"2013-07-15T10:04:15+00:00","twitter_misc":{"Written by":"ramandv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/www.ramandv.com\/blog\/#website","url":"http:\/\/www.ramandv.com\/blog\/","name":"Articles for Developers","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ramandv.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/#webpage","url":"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/","name":"Angularjs - Console log Errors - Articles for Developers","isPartOf":{"@id":"http:\/\/www.ramandv.com\/blog\/#website"},"datePublished":"2013-06-16T10:28:07+00:00","dateModified":"2013-07-15T10:04:15+00:00","author":{"@id":"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658"},"breadcrumb":{"@id":"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ramandv.com\/blog\/angularjs-console-log-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Angularjs &#8211; Console log Errors"}]},{"@type":"Person","@id":"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658","name":"ramandv","url":"http:\/\/www.ramandv.com\/blog\/author\/ramandv\/"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6YZCe-16","_links":{"self":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts\/68"}],"collection":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":9,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":142,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions\/142"}],"wp:attachment":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}