Skip to content

CDN import: TypeError: Cannot set property 'axios' of undefined #1861

@haynajjar

Description

@haynajjar

I'm trying to use axios CDN with dynamic import ES6 ,

My code

(async ()=>{ await import('https://unpkg.com/axios/dist/axios.min.js') })()

Error

axios_type_error

It works fine with System.import , but not with native import,

Context

  • axios version: v0.18.0
  • Environment: chrome 70, windows 10

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