Closed davedawkins closed 2 years ago
Sorry for the late reply. Github is being quite hot recently and totally missed this notification 😅
Yes, I had the same issue when including Sutil. This is because in Fable CLI the F# sources and potential JS files are kept in the same directory for packages, but the REPL Lib is precompiled so we have to tell Fable to keep the import relative and not to use the original source. So two steps:
${outPath}
in front of the import path to tell Fable to keep the import relativeGreat, thank you!
This is how Sutil/WebComponents.fs imports webcomponent.js
However it produces a runtime error in the REPL with a strange import path, which I'm able to fix with a symbolic link. I'm wondering if the include path needs to be more REPL-friendly in some say?
The requested path is effectively "/src/Fable.Repl.Lib/Sutil/webcomponent.js"
For reference this is the patch to my deployment script (from Sutil's point of view which is hosting the repl at https://sutil.dev/repl"