javascript - Uncaught TypeError: Cannot read properties of undefined (reading 'replace') - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/69068272/uncaught-typeerror-cannot-read-properties-of-undefined-reading-replace) (https://cdn.sstatic.net/Shared/stacks.css?v=d6a266655a25) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=22fb2cb11723) (Feed for question 'Uncaught TypeError: Cannot read properties of undefined (reading 'replace')') (/feeds/question/69068272) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (80823973848d5aac2ae197737f179bc4b30ac67c67491815ce58aee3b012cf60) (1) (2.0) Sign up with Google Sign up with GitHub OR (80823973848d5aac2ae197737f179bc4b30ac67c67491815ce58aee3b012cf60) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (80823973848d5aac2ae197737f179bc4b30ac67c67491815ce58aee3b012cf60) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f69068272%2funcaught-typeerror-cannot-read-properties-of-undefined-reading-replace) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f69068272%2funcaught-typeerror-cannot-read-properties-of-undefined-reading-replace) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f69068272%2funcaught-typeerror-cannot-read-properties-of-undefined-reading-replace) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f69068272%2funcaught-typeerror-cannot-read-properties-of-undefined-reading-replace) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list docker multithreading vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv maven linq qt dictionary unit-testing asp.net-core facebook apache-spark tensorflow file swing class unity-game-engine sorting date authentication go symfony t-sql opencv matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github spring-mvc elasticsearch kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers google-sheets machine-learning c++11 security google-apps-script flask ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous web-scraping pdf haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation next.js math session svg hadoop intellij-idea curl django-models rust join winapi laravel-5 url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 logging dom swiftui web matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory audio canvas multidimensional-array jsf random vector cookies redux input facebook-graph-api flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce azure-devops routes razor awk servlets mod-rewrite beautifulsoup excel-formula docker-compose filter iframe aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit boost deep-learning sass import memory-management error-handling async-await eloquent dynamic soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split cmd mysqli encoding django-views automation database-design collections hash netbeans build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j lua ansible material-ui parameters module enums flexbox visual-studio-2012 promise outlook firebase-authentication webview web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive scipy tfs count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js powerbi rxjs constructor graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr url-rewriting backbone.js memory-leaks datatables oauth terraform datagridview drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list path proxy timer django-templates arduino orm directory parse-platform visual-studio-2015 windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview gitlab visual-studio-2013 vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process pygame rspec properties combobox callback windows-phone-8 linux-kernel safari permissions scrapy raspberry-pi scripting emacs clojure x86 scope io compilation expo mongodb-query responsive-design nhibernate angularjs-directive azure-functions request bluetooth dns 3d binding reference architecture discord.js playframework version-control pyqt doctrine-orm package get sql-server-2012 rubygems f# autocomplete openssl datepicker kendo-ui tree jackson controller yii pycharm nested grep xamarin.ios static dockerfile statistics null transactions datagrid active-directory uiviewcontroller webforms phpmyadmin discord.py notifications sas computer-vision duplicates mocking youtube nullpointerexception yaml menu sum bitmap blazor asp.net-mvc-5 electron visual-studio-2008 time-series yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss cors joomla navigation devise anaconda background camera multiprocessing pyqt5 binary cuda frontend linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose microsoft-graph-api android-asynctask tabs laravel-4 insert environment-variables uicollectionview amazon-dynamodb linker xsd console coldfusion upload continuous-integration ftp textview opengl-es vuejs3 operating-system mockito macros localization formatting xml-parsing json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header fortran sprite-kit mfc attributes nuxt.js azure-pipelines nosql format nestjs odoo db2 jquery-plugins jenkins-pipeline leaflet event-handling postman flutter-layout annotations julia keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments synchronization xampp timezone crystal-reports dom-events uikit azure-web-app-service android-emulator swagger wso2 sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation webdriver centos snowflake-cloud-data-platform html5-canvas garbage-collection dialog widget numbers concatenation qml sql-update set tuples windows-10 java-stream mapreduce smtp ionic2 rotation modal-dialog spring-data android-edittext http-headers nuget doctrine radio-button sonarqube grid lucene xmlhttprequest internationalization listbox initialization switch-statement components google-play apache-camel boolean serial-port ldap ios5 youtube-api gdb return latex pivot eclipse-plugin frameworks tags containers github-actions dataset asp-classic subquery label foreign-keys c++17 copy uinavigationcontroller delegates google-cloud-storage migration struts2 base64 protractor embedded find queue sql-server-2008-r2 uibutton arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup tailwind-css iteration airflow r-markdown windows-7 ssl-certificate vb6 gmail hover jqgrid g++ udp range Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/beta/discussions) Discussions Labs (https://chat.stackoverflow.com/?tab=all&sort=active) Chat (/users) Users (/jobs?source=so-left-nav) Jobs (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/69068272/uncaught-typeerror-cannot-read-properties-of-undefined-reading-replace) Uncaught TypeError: Cannot read properties of undefined (reading 'replace') (/questions/ask) Ask Question (2021-09-06 01:10:19Z) Asked 3 years, 7 months ago Modified (?lastactivity) (2022-05-16 01:27:00Z) 2 years, 11 months ago (Viewed 197,710 times) Viewed 198k times This question shows research effort; it is useful and clear (70:3:31e,16:ab440a7ec5687e4a,10:1744940576,16:3bc91ddb128238c1,8:69068272,b6c3dbb64fc1a3428159ed856df7c5df27d03d4a7dc799388ab8c252db661973) 13 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:1fd7b364aa6d746b,10:1744940576,16:388bac6ed49abd23,8:69068272,42965909b8266faeb75a80e9805e716dec3d86b7703d7e62fc9f2025ad7d6beb) Save this question. (/posts/69068272/timeline) Show activity on this post. I am presenting this error when uploading the player to the server since locally it works fine. Let me explain a bit, the player locally shows the song that is playing, the one that is coming and the one that has already played, but when uploading to the server I get the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'replace' ) in the following lines of code but I don't exactly understand why. I would like to know if you can guide me on this to finish this project and deliver it, thanks in advance. let song = data.currentSong .replace (/'/g , '\'' ); currentSong = song.replace (/&/g , '&' ); let artist = data.currentArtist .replace (/'/g , '\'' ); currentArtist = artist.replace (/&/g , '&' ); (/questions/tagged/javascript) (show questions tagged 'javascript') javascript (/questions/tagged/replace) (show questions tagged 'replace') replace (/q/69068272) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69068272/edit) () Improve this question Follow (70:3:31e,16:b63269a3ea400a17,10:1744940576,16:367003419fa15792,8:69068272,38f018ef1278103578263f1c5cfada9c9bd06b82bb555bbf50b9c071fb738d0e) Follow this question to receive notifications asked (2021-09-06 01:10:19Z) Sep 6, 2021 at 1:10 (/users/16838071/diego-morejon) (Diego Morejon's user avatar) (/users/16838071/diego-morejon) Diego Morejon Diego Morejon (reputation score) 165 (1 gold badge) 1 1 gold badge (1 silver badge) 1 1 silver badge (6 bronze badges) 6 6 bronze badges 3 I think your data.currentSong or data.currentArtist is undefined – (/users/6099811/navnath) (3,724 reputation) navnath Commented (2021-09-06 01:14:32Z, License: CC BY-SA 4.0) Sep 6, 2021 at 1:14 But what difference could there be between the web server and the local server? On my local server, that is, it works fine on my laptop, but not on the web server. – (/users/16838071/diego-morejon) (165 reputation) Diego Morejon Commented (2021-09-06 01:29:37Z, License: CC BY-SA 4.0) Sep 6, 2021 at 1:29 where you get /set data? can you share that code – (/users/6099811/navnath) (3,724 reputation) navnath Commented (2021-09-06 01:49:35Z, License: CC BY-SA 4.0) Sep 6, 2021 at 1:49 (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 2 Answers 2 Sorted by: (/questions/69068272/uncaught-typeerror-cannot-read-properties-of-undefined-reading-replace?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:a539ede8e7a8b65c,10:1744940576,16:e1fb000a930d8f85,8:72170023,b3fc033196b48539987537d5481246339dc705865d0cc27b8907d9ead32f01de) 15 (This answer is not useful) (70:3:31e,16:a38e43c988c6af5e,10:1744940576,16:7da50a442d4a199d,8:72170023,2c31ea3f660caa50cbe55b1bef22408bd3d6a6cb6f4788e204b4d5262da30e0c) Save this answer. (Loading when this answer was accepted…) (/posts/72170023/timeline) Show activity on this post. I had the same error and I fixed it like this: Before: localizeDate (date ) { date = date.replace ("T" , "/" ); return date.replace (".000000Z" , "" ); }, After: localizeDate (date ) { if (!date) return date = date.replace ("T" , "/" ); return date.replace (".000000Z" , "" ); }, The issue is that the function is called before any data loads from the server. You could also fix it with Promises, async/wait or loaders. (/a/72170023) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/72170023/edit) () Improve this answer Follow (70:3:31e,16:e17ed4e739ec8951,10:1744940576,16:98488f8d02819c16,8:72170023,a39ffbac9eaa130d967a3e4181fa930cb9f4a85619552f83ed9a973714ab2be8) Follow this answer to receive notifications (/posts/72170023/revisions) (show all edits to this post) edited (2022-05-16 01:27:00Z) May 16, 2022 at 1:27 (/users/14190543/zach-jensz) (Zach Jensz's user avatar) (/users/14190543/zach-jensz) Zach Jensz (reputation score) 4,076 (6 gold badges) 6 6 gold badges (17 silver badges) 17 17 silver badges (31 bronze badges) 31 31 bronze badges answered (2022-05-09 09:48:11Z) May 9, 2022 at 9:48 (/users/11516722/asyia) (Asyia's user avatar) (/users/11516722/asyia) Asyia Asyia (reputation score) 151 (1 silver badge) 1 1 silver badge (6 bronze badges) 6 6 bronze badges 1 (number of 'useful comment' votes received) 1 Thanks I'm going to try this too, the other solution stopped working. – (/users/16838071/diego-morejon) (165 reputation) Diego Morejon Commented (2022-05-10 03:10:45Z, License: CC BY-SA 4.0) May 10, 2022 at 3:10 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:ca50f5a7bdfc6f94,10:1744940576,16:7e2a3e6eb16f0fae,8:69144850,57c1ace240ef98c2eb48c5f12c14330700882f1178c24bf086770cf930944745) 13 (This answer is not useful) (70:3:31e,16:95797a9f0b51e785,10:1744940576,16:f246e38c0ed9205b,8:69144850,61d3e0d4d5a5d591ef10fd93b436c1d4d956b20fcaf169117a5b81e85e660ad7) Save this answer. (Loading when this answer was accepted…) (/posts/69144850/timeline) Show activity on this post. In your example Uncaught TypeError: Cannot read properties of undefined (reading 'replace' ) can occur only if your variables song and/or artist are undefined . That means either data.currentSong or data.currentArtist or both of them getting you undefined result. Answer to your question:There could be some differences between the web server and the local server. For example, sometimes the jQuery version of local server is different than the web server. The exact source of the issue could be found, if you can share the code which is responsible to get you the data. (/a/69144850) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69144850/edit) () Improve this answer Follow (70:3:31e,16:952e0abcbf10a258,10:1744940576,16:e5c760a1db281398,8:69144850,d98b8e0a663c5adca2086bd5839d9375bf0bcb3144ddf181dc391a19e9281fc8) Follow this answer to receive notifications answered (2021-09-11 16:31:44Z) Sep 11, 2021 at 16:31 (/users/7242609/fluent-themes) (Fluent-Themes's user avatar) (/users/7242609/fluent-themes) Fluent-Themes Fluent-Themes (reputation score) 194 (1 silver badge) 1 1 silver badge (3 bronze badges) 3 3 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (69068272) (false) () (0) Your Answer (False) Reminder: Answers generated by AI tools are not allowed due to Stack Overflow's (/help/gen-ai-policy) artificial intelligence policy (true) 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 (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (80823973848d5aac2ae197737f179bc4b30ac67c67491815ce58aee3b012cf60) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f69068272%2funcaught-typeerror-cannot-read-properties-of-undefined-reading-replace%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/javascript) (show questions tagged 'javascript') javascript (/questions/tagged/replace) (show questions tagged 'replace') replace See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/04/16/wbit-7-exploring-webassembly-with-the-first-so-user-to-get-10k-rep/?cb=1) WBIT #7: Exploring WebAssembly with the first SO user to get 10k rep (https://stackoverflow.blog/2025/04/17/wait-what-is-agentic-ai/?cb=1) Wait, what is agentic AI? Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407927/changes-to-reporting-for-the-status-review-escalation-process?cb=1) Changes to reporting for the [status-review] escalation process (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) Policy: Generative AI (e.g., ChatGPT) is banned (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433466/a-discussion-about-closed-and-potentially-useful-posts-on-stack-overflow?cb=1) A discussion about closed (and potentially useful) posts on Stack Overflow Related (https://stackoverflow.com/q/6410862?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/6410862/javascript-replace-undefined-error-shows?rq=3) Javascript replace undefined error shows! (https://stackoverflow.com/q/17716218?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/17716218/uncaught-typeerror-cannot-call-method-replace-of-undefined?rq=3) Uncaught TypeError: Cannot call method 'replace' of undefined (https://stackoverflow.com/q/18158100?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/18158100/uncaught-typeerror-cannot-call-method-replace-of-undefined-in-jquery?rq=3) Uncaught TypeError: Cannot call method 'replace' of undefined in jquery (https://stackoverflow.com/q/25342320?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/25342320/typeerror-undefined-is-not-a-function-when-calling-replace-method?rq=3) TypeError : undefined is not a function when calling replace method (https://stackoverflow.com/q/34398233?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/34398233/cannot-read-property-replace-of-undefined-error?rq=3) Cannot read property 'replace' of undefined error (https://stackoverflow.com/q/34584319?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/34584319/error-cannot-read-property-replace-of-undefined?rq=3) Error : Cannot read property 'replace' of undefined (https://stackoverflow.com/q/36296118?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/36296118/yet-another-uncaught-typeerror-cannot-read-property-replace-of-undefined?rq=3) Yet Another Uncaught TypeError: : Cannot read property 'replace' of undefined (https://stackoverflow.com/q/42943820?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/42943820/cannot-read-property-replace-of-undefined-in-jquery?rq=3) Cannot read property 'replace' of undefined in jquery (https://stackoverflow.com/q/49381162?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/49381162/error-uncaught-typeerror-cannot-read-property-replace-of-undefined?rq=3) **ERROR:** "Uncaught TypeError: Cannot read property 'replace' of undefined"? (https://stackoverflow.com/q/60664501?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/60664501/uncaught-typeerror-cannot-read-property-replace-of-undefine?rq=3) Uncaught TypeError: Cannot read property 'replace' of undefine (https://stackexchange.com/questions?tab=hot) Hot Network Questions (History of Science and Mathematics Stack Exchange) (https://hsm.stackexchange.com/questions/18486/e-du-chatelet-asserted-that-light-must-be-massless-is-her-reasoning-known) E. du Chatelet asserted that light must be massless -- is her reasoning known? (Board & Card Games Stack Exchange) (https://boardgames.stackexchange.com/questions/61865/do-exchanged-creatures-equipment-still-grant-you-benefits) Do exchanged creatures' equipment still grant you benefits? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/217990/icmje-guidelines) ICMJE guidelines (Super User) (https://superuser.com/questions/1892272/discord-thinks-i-am-living-in-the-future-why) Discord thinks I am living in the future - why? (Super User) (https://superuser.com/questions/1892383/my-pst-file-on-laptop-is-too-big-to-backup-online-what-can-i-do) My pst file on laptop is too big to backup online. What can I do? (Movies & TV Stack Exchange) (https://movies.stackexchange.com/questions/125096/who-are-guinness-and-genghis-khan-capone-in-being-john-malkovich) Who are Guinness and Genghis Khan Capone in Being John Malkovich? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/296065/a-book-in-english-about-teleportation-inside-out-pencil) A book in English about teleportation—inside out pencil (Geographic Information Systems Stack Exchange) (https://gis.stackexchange.com/questions/491970/adding-what3words-to-many-points-in-qgis-attribute-table) Adding What3Words to many points in QGIS Attribute Table (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/296070/1960s-sf-novel-protagonist-with-ordinary-face) 1960s SF novel protagonist with ordinary face (Travel Stack Exchange) (https://travel.stackexchange.com/questions/194944/are-there-any-flight-data-sites-that-let-you-check-which-flight-is-less-or-more) Are there any flight data sites that let you check which flight is less or more >crowded