jchavarri / framer-boilerplate

An empty Framer project that uses Gulp for live reload and CoffeeScript transpilation + Browserify to include modules
23 stars 10 forks source link

Device Type "undefined" #6

Open Tuckers opened 6 years ago

Tuckers commented 6 years ago

I'm getting an error "Device type "undefined"" when using:

Framer.Device.deviceType = "fullscreen"

Is there a work around for this?

Tuckers commented 6 years ago

To add additional context, I've been able to get it sort of working using device = new Framer.DeviceView, but the numbers I get for Screen.width and Screen.height appear to be exactly half the actual window dimensions.

Tuckers commented 6 years ago

I'm wondering if this is related to the pre compiled version of framer?

anjalyes commented 5 years ago

I had a similar problem when I added a new module. Try adding Framer.Device = new Framer.DeviceView() in your main coffee/js file instead of device = new Framer.DeviceView