Skip to content

Use of reserved word 'let' in strict mode #6

@Overdrivr

Description

@Overdrivr

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions