vue-octicon icon indicating copy to clipboard operation
vue-octicon copied to clipboard

Use of reserved word 'let' in strict mode

Open Overdrivr opened this issue 7 years ago • 0 comments

If I import vue-octicon inside a component, I get the following error during testing (by running unit tests generated with vue-loader )


<script>
import Octicon from 'vue-octicon/components/Octicon'
import 'vue-octicon/icons'

export default {
  name: 'hello',
  components: {
     'octicon': Octicon
  },
  data () {
     return {}
  }
}
SyntaxError: Use of reserved word 'let' in strict mode
  at webpack:///node_modules/vue-octicon/util.js:3:0

Any idea on how to solve this ?

Overdrivr avatar Mar 06 '18 15:03 Overdrivr