Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error of default is not a function with systemjs-importmap #357

Closed
@viT-1

Description

@viT-1

systemjs-importmap.json:

{
	"imports": {
		"vue": "https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js",
		"vue-class-component": "https://cdn.jsdelivr.net/npm/[email protected]/dist/vue-class-component.min.js"
	}
} 

Adding vue-class-component decorator to my Vue repo caused an error
TypeError: vue_class_component_1.default is not a function

Way to reproduce:

  1. npm run deploy
  2. npm run www
  3. browser loading http://localhost:3000/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions