Fable.System.IO icon indicating copy to clipboard operation
Fable.System.IO copied to clipboard

open Fable.System.IO no longer works

Open jwosty opened this issue 4 years ago • 1 comments

I seem to have broken the namespace structure such that open Fable.System.IO now generates a compile error:

error FS0039: The namespace 'IO' is not defined.

which results in things like this, further down the line:

error FS0039: The value, namespace, type or module 'Path' is not defined.

Workaround

Workaround for now is to either downgrade Fable.System.IO to 0.1.1, or replace instances of Path.SomeMethod with Fable.System.IO.Path.SomeMethod (and likewise with File methods).

jwosty avatar Sep 18 '21 20:09 jwosty

I was able to work around this using a couple of let bindings.

let Path = Fable.System.IO.Path
let File = Fable.System.IO.File

bigjonroberts avatar Dec 07 '22 19:12 bigjonroberts