Duane, are you trying it on the repl? In that case `document` probably
isn't available, and this error probably comes from elm-navigation.

>From what I gather, ktonon's url-parser only removes the dependency on
elm-navigation `Location`, which is something I require to parse a path
string.

On Tue, Mar 14, 2017 at 12:59 AM, Duane Johnson <[email protected]>
wrote:

> Not sure if this is helpful, but if I redefine `urlParam` as follows:
>
> ```
> urlParam : String -> QueryParser (Maybe Route -> a) a
> urlParam name =
>     customParam name (\_ -> Nothing)
> ```
>
> I get a new error:
>
> ```
> /Users/duane/tmp/elm-typeerror/repl-temp-000.js:8831
> var location = document.location;
>                       ^
>
> ReferenceError: document is not defined
>     at Object.getLocation (/Users/duane/tmp/elm-
> typeerror/repl-temp-000.js:8831:25)
>     at Function.func (/Users/duane/tmp/elm-typeerror/repl-temp-000.js:
> 9035:43)
>     at A2 (/Users/duane/tmp/elm-typeerror/repl-temp-000.js:92:11)
>     at Object.<anonymous> (/Users/duane/tmp/elm-
> typeerror/repl-temp-000.js:9504:31)
>     at Object.<anonymous> (/Users/duane/tmp/elm-
> typeerror/repl-temp-000.js:9545:4)
>     at Module._compile (module.js:570:32)
>     at Object.Module._extensions..js (module.js:579:10)
>     at Module.load (module.js:487:32)
>     at tryModuleLoad (module.js:446:12)
>     at Function.Module._load (module.js:438:3)
> ```
>
> Could there be some kind of incompatibility introduced by `ktonon`s
> version of `url-parser` when the `elm-lang/html` package is imported? (the
> docs on ktonon's elm package page say his/her variant of
> `evancz/url-parser` is for server-side use only).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Juan

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to