Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue cli 3 + webpack + IE11

See original GitHub issue

i am getting this error whenever i try and include this on IE 11

SCRIPT1003: Expected ‘:’

It is causing nothing to render. When i remove

import VueAnime from 'vue-animejs';

everything works fine

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

maulpetscommented, Nov 7, 2018

i took your index.js dropped into babel and MAGIC!!

Works as intended on IE

'use strict';

var anime = require('animejs');

function install(Vue) {
  Vue.directive('anime', {
    bind: function bind(targets, binding) {
      var opts = Object.assign({}, binding.value, { targets: targets });
  Vue.prototype.$anime = anime;

module.exports = {
  install: install
BenAHammondcommented, Nov 7, 2018

I guess that original object usage is still ES6. Boy, this really takes me back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue-cli 3, babel polyfills and IE11 - Get Help
My project was created with Vue-Cli 3 and migrated to 4. I tried with @vue/app and @vue/cli-plugin-babel/preset but IE is keeps throwing me:....
Read more >
Using Vue 3 in IE11 - Stack Overflow
I tried using Vue CLI @vue/cli 4.5.8 , which currently installs vue@3.0.2 (along with Vuex, Router and Typescript support). After using ...
Read more >
Is your Vue app not working in IE 11? Here's how to fix it.
Method 1: Use core-js upfront: If you've used Vue Cli 3 to generate your app, then core-js comes built in. Core-js is a...
Read more >
vue-cli-service serve not working with IE11 #4114 - GitHub
A workaround is to install an older version of webpack-dev-server. ... The dev server has been working fine in IE11 until recently. Due...
Read more >
IE11 + Vue-Cli + Webpack + Babel - SCRIPT1003 Error-Vue.js
Once I removed it everything works with babel included. Still not sure why the component is breaking it though... Goran 3017. score:3.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found