Closed aradhyakalva closed 1 year ago
This seems to be caused by the same root issue as https://github.com/tldraw/tldraw/pull/660#issuecomment-1113170053. In this thread, @andarist was mentioned as potentially being able to help.
@tomayac I'm on vacation rn but I might take a look in a week when I get back. Don't hesitate to ping me again if I don't - sometimes things just slip through the cracks
Enjoy your vacation! If we find a fix for this, eventually tldraw could use the module as a direct dependency, rather than maintaining a local copy.
@aradhyakalva the most likely fix for your problem is to add this to your tsconfig.json
::
{
"compilerOptions": { "lib": ["DOM"] }
}
This seems to be fixable as per the instructions given in the comment above.
"Version used -"browser-fs-access": "^0. 31.01 "ts-node": "~9.1. 11 "typescript": "~4.3.5", node v14.17.6 npm v6.14.15
Issue
Below error is showing up in logs while starting the application
Error: libs/node modules/browser-fs-access/index.d.ts:147:20 - error TS2304: Cannot find name 'FileSystemFileHandle'
existingHandle?: FilesystemFileHandle | null,
Error: libs/node modules/browser-fs-access/index.d.ts:157:30 - error TS2304: Cannot find name 'FilesystemFileHandle'
filePickershown?: (handle: FileSystemFileHandle | null) => void | null
Error: libs/node modules/browser-fs-access/index.d.ts:158:12 - error Is2304: cannot find name "FilesystemFileHandle"
: Promise;