question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: path.replace is not a function

See original GitHub issue

Atom Version: 1.12.7 Electron Version: 1.3.13 System: Microsoft Windows 10 Home Thrown From: file-icons package, v2.0.0

Stack Trace

Uncaught TypeError: path.replace is not a function

At C:\Users\krist\AppData\Local\atom\app-1.12.7\resources\app.asar\node_modules\git-utils\lib\git.js:199

TypeError: path.replace is not a function
    at Repository.relativize (C:\Users\krist\AppData\Local\atom\app-1.12.7\resources\app.asar\node_modules\git-utils\lib\git.js:199:19)
    at GitRepository.module.exports.GitRepository.relativize (C:\Users\krist\AppData\Local\atom\app-1.12.7\resources\app.asar\src\git-repository.js:163:29)
    at GitRepository.module.exports.GitRepository.getCachedPathStatus (C:\Users\krist\AppData\Local\atom\app-1.12.7\resources\app.asar\src\git-repository.js:271:33)
    at File.watchRepo (C:\Users\krist\.atom\packages\file-icons\lib\filesystem\file.js:395:27)
    at new File (C:\Users\krist\.atom\packages\file-icons\lib\filesystem\file.js:31:8)
    at FileRegistry.get (C:\Users\krist\.atom\packages\file-icons\lib\filesystem\file-registry.js:65:17)
    at new Tab (C:\Users\krist\.atom\packages\file-icons\lib\consumers\tab.js:15:32)
    at Tabs.add (C:\Users\krist\.atom\packages\file-icons\lib\consumers\tabs.js:77:16)
    at disposables.UI.delay.onOpenEditor.editor (C:\Users\krist\.atom\packages\file-icons\lib\consumers\tabs.js:25:10)
    at Immediate._ (C:\Users\krist\.atom\packages\file-icons\lib\ui.js:70:38)
    at runCallback (timers.js:574:20)
    at tryOnImmediate (timers.js:554:5)
    at processImmediate [as _immediateCallback] (timers.js:533:5)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Alhadiscommented, Dec 29, 2016

I’ve published a hotfix. Please let me know if this persists after updating.

I’ll have a closer look as to why this is happening.

1reaction
matheusgriegercommented, Dec 29, 2016

Yes, solved it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: path.replace is not a function - Stack Overflow
I'm getting this error when running webpack - it seems that path is an object rather than a string, and the replace method...
Read more >
TypeError: replace is not a function in JavaScript | bobbyhadz
The "replace is not a function" error occurs when we call the replace() method on a value that is not of type string...
Read more >
Issues - GitHub
TypeError: path.replace is not a function in ./typescript/lib/typescript.js #26554. BiosBoy opened this issue on Aug 20, 2018 · 5 comments.
Read more >
TypeError: replace is not a function in JavaScript - Java2Blog
TypeError : .replace is not a function occurs when we call replace() function on object which is not an string. replace() function can...
Read more >
Fixed - Uncaught TypeError: a.replace is not a function
This does assume that newCount is a string, but this might not necessarily be the case - on initial page load this is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found