websiddu / sketch-material

Sketch material is a sketch plugin that will help you generate complex material components like tables, chips, forms etc…
https://websiddu.github.io/sketch-material
MIT License
851 stars 80 forks source link

FATAL: Bundle not compatible with OS X 10.11 (El Capitan, AppleWebKit/601.7.8) #52

Closed maddrag0n closed 6 years ago

maddrag0n commented 6 years ago

Apparently 601.7.8 does not have support for ES6 language features such as const, let, etc.

Occurs when selecting Typography… from the menu (similar on Color… and Icons…).

[Error] SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
    (anonymous function) (vendor.60ca0db67c04e108c261.js:90957)

[Error] TypeError: undefined is not an object (evaluating 'e[n].call')
    r (manifest.c2099ec69162985b5f50.js:1:101)
    (anonymous function) (app.2b7c47d0518cd7018385.js:1:1882)
    r (manifest.c2099ec69162985b5f50.js:1:106)
    webpackJsonp (manifest.c2099ec69162985b5f50.js:1:420)
    global code (app.2b7c47d0518cd7018385.js:1)

this is on latest Sketch btw.

websiddu commented 6 years ago

Yeah unfortunately the plugin don't work with El Captian, please update your Mac OS.

Sorry.

maddrag0n commented 6 years ago

@websiddu I cannot update my macOS, since it is the latest supported version on my Early 2013 Macbook Pro Retina.

I suggest adding a simple webpack build pipeline with babel, that transform all of that ES6 into cross-browser compatible ES5

websiddu commented 6 years ago

Let me check this weekend :)

maddrag0n commented 6 years ago

@websiddu let me know if you need a helping hand