replica icon indicating copy to clipboard operation
replica copied to clipboard

The `js` path and files need added to the cabal distribution

Open TomMD opened this issue 4 years ago • 1 comments

The cabal release of this package is missing the js directory and files thus resulting in a build error:

src/Replica/VDOM.hs:259:16-50: error:
    • Exception when trying to run compile-time code:
        js/dist/client.js: openBinaryFile: does not exist (No such file or directory)
      Code: FE.embedFile "js/dist/client.js"
    • In the untyped splice: $(FE.embedFile "js/dist/client.js")                                          |                                                                                                 259 | clientDriver = $(FE.embedFile "js/dist/client.js")

TomMD avatar Mar 05 '20 23:03 TomMD

Might want to use makeRelativeToProject as well: https://hackage.haskell.org/package/file-embed-0.0.11.2/docs/Data-FileEmbed.html#v:makeRelativeToProject

seagreen avatar Mar 06 '20 00:03 seagreen