Closed dotnetspec closed 3 months ago
Hello @dotnetspec,
you need to import your application code so vite can load the JavaScript files etc. by adding something like<script type="module" src="/fableBuild/src/App.js"></script>
to your index.html
file.
Thanks, yes, that was it ...
Description
I've been through Fable and Fable.Elmish setup and tried the BrowserSPA tutorial.
dotnet build
of new file Browserspa.fs succeeds and a Browserspa.fs.ts is created. so I proceed tonpx vite
to run the development server as I had previously on compiling Program.fs (from the Fable tutuorial).Repro code
Files in same folder:
Expected and actual results
Expected: To see the counter app in the local-host browser.
Actual: Nothing appears. Console just has
[vite] connecting...
Related information
What is missing that prevents the 'elmish-app' from appearing in the browser? Thanks ...