elm-repl icon indicating copy to clipboard operation
elm-repl copied to clipboard

TypeError: Cannot read property 'programStart' of undefined

Open z5h opened this issue 10 years ago • 6 comments
trafficstars

In the REPL:

> import Time
> import Signal
> (Signal.constant 1) |> Time.timestamp
TypeError: Cannot read property 'programStart' of undefined

z5h avatar Nov 21 '15 02:11 z5h

yeah I got this too when importing a module that used both Time and Signal. I'm a complete beginner in elm though so I have no idea what it means and I'll just work around it :/

amedeedaboville avatar Nov 26 '15 19:11 amedeedaboville

@amedeedaboville This is not a problem with the code input into the REPL. This is a problem with the REPL itself.

The REPL, if I understand correctly, does not have full support for Signals. Still, I'd expect to be able to be able to view my construction's type (for example) in the REPL without necessarily using it.

z5h avatar Nov 26 '15 20:11 z5h

@z5h I agree, though an acceptable bare minimum might be to be able to view the types of other stuff in the module:

module Test where

import Time

foo = "bar"

mysig = Time.every Time.second

Due to mysig I can't even see the type of foo in elm-repl.

magthe avatar Nov 30 '15 09:11 magthe

It is happening to me as well

jorgebg avatar Dec 08 '15 19:12 jorgebg

+1

co-dh avatar Jan 07 '16 16:01 co-dh

Same issue.

> import Time
> Time.fps 60
TypeError: Cannot read property 'programStart' of undefined

simonewebdesign avatar Apr 22 '16 18:04 simonewebdesign