kellyselden / ember-awesome-macros

A collection of Ember computed macros
MIT License
205 stars 36 forks source link

Embroider "default export not found" warnings #630

Closed Windvis closed 2 years ago

Windvis commented 3 years ago

These kind of warnings are shown in the console when building an app that uses this addon with Embroider. It doesn't fail the build so it's not blocking.

WARNING in ./node_modules/ember-awesome-macros/index.js 89:24-36
export 'default' (imported as 'string') was not found in './string' (possible exports: camelize, capitalize,..)

The same kind of warnings are displayed for promise, array and math.

The problem is that the ./string/index.js file doesn't have a default export, but that's how it is imported in the addon/index.js file. I think this needs to be import * as string from './string'; instead?