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)