Alexxxo's avatar

Foundation 6.4 and Laravel 5.4

I have a problem with Foundation 6.4

.bootsptrap require('foundation-sites'); $(document).foundation();

npm run dev

in chrome browser all is good, but in IE and maxthon a have errors.

Uncaught SyntaxError: Unexpected token ILLEGAL

return Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).slice(1) + (namespace ? -${namespace} : '');

i understand that the reason is in the babel and ES2015. but have no idea how to fix it.

thank's for any help.

0 likes
0 replies

Please or to participate in this conversation.