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.
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 errorUncaught TypeError: root is undefinedReproduce Scenario (including but not limited to)
npm install balance-textSteps to Reproduce
This used to work fine. Not sure if newer Node/webpack version has caused this.