Skip to content

How to import with webpack? #142

Description

@coreyworrell

Expected Behaviour

Imports the default export

Actual Behaviour

Webpack outputs error: export 'default' (imported as 'balanceText') was not found in 'balance-text' (possible exports: ) and browser throws error Uncaught TypeError: root is undefined

Reproduce Scenario (including but not limited to)

npm install balance-text

Steps to Reproduce

import balanceText from 'balance-text'
balanceText()

This used to work fine. Not sure if newer Node/webpack version has caused this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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