ihp icon indicating copy to clipboard operation
ihp copied to clipboard

Any scripts/css aren't loaded on dev tools

Open reactormonk opened this issue 3 years ago • 2 comments

I created a new project with either --elm or --purescript-halogen via ihp-new (installed via default nix instructions). When I open localhost:8001, I only get the html. Any css or js that the browser tries to load comes back empty, but with a 200.

reactormonk avatar Feb 26 '22 19:02 reactormonk

I guess it's not finding the directory where the css/js files from the framework are stored.

Can you run the auto troubleshooting script from https://ihp.digitallyinduced.com/Guide/troubleshooting.html ? This will give us a few more infos for debugging this

mpscholten avatar Feb 26 '22 20:02 mpscholten

I had to comment out the part checking for .config/nix/nix.conf which doesn't exist here (global nix install)

Checking that the current directory is an IHP project:
+ Found Main.hs
+ Found start script
+ Nix installed
Checking direnv:
+ Found .envrc
+ direnv loads .envrc
+ direnv allows .envrc
+ ghci is loaded from nix store
Checking .ghci:
+ Found .ghci
+ .ghci permissions are ok
Checking IHP:
+ Symlink build/ihp-lib exists
+ Symlink build/ihp-lib target exists
+ IHP used from nix
Checking Cachix:
+ Cachix exists
Checking IHP files:
Debugging Details:
GHCI Output:
GHCi, version 8.10.7: https://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /home/tass/.ghci
package flags have changed, resetting and loading new packages...
Loaded GHCi configuration from /home/tass/dev/haskell/ihp/calories/.ghci
IHP> ok
IHP> Leaving GHCi.

build/ihp-lib Target:
/nix/store/695041d2gxr0wbdzjmjlmlwy2w1dpdd1-ghc-8.10.7-with-packages/bin/../lib/IHP
Direnv Output:
direnv exec path /usr/bin/direnv
DIRENV_CONFIG /home/tass/.config/direnv
bash_path /nix/store/kp60cyq5iig35gzp7l2pr0ilxxa4m919-bash-interactive-4.4-p23/bin/bash
disable_stdin false
warn_timeout 5s
whitelist.prefix []
whitelist.exact map[]
Loaded RC path /home/tass/dev/haskell/ihp/calories/.envrc
Loaded watch: ".envrc" - 2022-02-26T18:35:10+01:00
Loaded watch: "../../../../.local/share/direnv/allow/6f109679f69aed2e139c9a1927b2d0e8b756a111753adef8e5a9d8cdd8ae0598" - 2022-02-26T21:45:57+01:00
Loaded RC allowed false
Loaded RC allowPath 
Found RC path /home/tass/dev/haskell/ihp/calories/.envrc
Found watch: ".envrc" - 2022-02-26T18:35:10+01:00
Found watch: "../../../../.local/share/direnv/allow/6f109679f69aed2e139c9a1927b2d0e8b756a111753adef8e5a9d8cdd8ae0598" - 2022-02-26T21:45:57+01:00
Found RC allowed true
Found RC allowPath /home/tass/.local/share/direnv/allow/6f109679f69aed2e139c9a1927b2d0e8b756a111753adef8e5a9d8cdd8ae0598

which direnv Output:
/nix/store/695041d2gxr0wbdzjmjlmlwy2w1dpdd1-ghc-8.10.7-with-packages/bin/ghci

default.nix:
let
    ihp = builtins.fetchGit {
        url = "https://github.com/digitallyinduced/ihp.git";
        ref = "refs/tags/v0.18.0";
    };

OS:
Linux-5.16.9-zen1-1-zen-x86_64-with-glibc2.35

reactormonk avatar Feb 26 '22 20:02 reactormonk