PlatformIO: TypeError: i.default.isFileSync is not a function

I’m getting this error when I install platformio on VS code version 1.39.2 on Windows. I’ve tried wiping all traces of previous versions of platformio but with no luck…

TypeError: i.default.isFileSync is not a function
	at Object.t.isPIOProject (c:\Users\clovett\.vscode\extensions\platformio.platformio-ide-1.9.1\node_modules\platformio-node-helpers\dist\index.js:1:4689)
	at map.filter.e (c:\Users\clovett\.vscode\extensions\platformio.platformio-ide-1.9.1\dist\extension.js:1:13675)
	at Array.filter (<anonymous>)
	at c (c:\Users\clovett\.vscode\extensions\platformio.platformio-ide-1.9.1\dist\extension.js:1:13658)
	at Object.t.getActivePIOProjectDir (c:\Users\clovett\.vscode\extensions\platformio.platformio-ide-1.9.1\dist\extension.js:1:12547)
	at Object.activate (c:\Users\clovett\.vscode\extensions\platformio.platformio-ide-1.9.1\dist\extension.js:1:2810)
	at t.activate (c:\Users\clovett\.vscode\extensions\platformio.platformio-ide-1.9.1\dist\extension.js:1:1684)
	at Function._callActivateOptional (c:\Users\clovett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:667:613)
	at Function._callActivate (c:\Users\clovett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:667:264)
	at Promise.all.then.n (c:\Users\clovett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:666:404)

I get this too. Everything worked last night but now I can’t open a project. Uninstalled and reinstalled VS Code and PlatformIO. I can create a new project but then can’t even open it.

IDE 1.9.0 works OK, 1.9.1 gives me this error.

Sorry for the issue, just update extension to 1.9.2.

1 Like

That fixed it, thanks and keep up the great work!

1 Like