Skip to content

TypeError: axios.get is not a function (v1.1.0) #5038

@addisonhardy

Description

@addisonhardy

Describe the bug

The new version of axios (v1.1.0) is throwing an error for axios.get: TypeError: axios.get is not a function.

Note: This issue was not present in v1.0.0

To Reproduce

Include axio v1.1.0 via a <script> tag, and then reference it directly via axios.get()

<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script>
<script>
    axios.get(...)
</script>

Expected behavior

axios.get should be a valid function.

Environment

  • Axios Version 1.1.0

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