soxhub / ember-scoped-css

MIT License
12 stars 1 forks source link

`scoped-class` is not a helper error when developing an addon component consumed by a primary application #218

Closed runspired closed 3 months ago

runspired commented 3 months ago

In luna-core I have added a new component that uses scoped-class. The consuming application when using this component throws an error that scoped-class is not a helper. luna-core build is running (via pnpm start)

I'm guessing there's some build magic that the consuming app does that isn't working correctly for this setup.

NullVoxPopuli commented 3 months ago

I think a good solve for this would be to add a runtime scoped-class that throws an error.

we already have a runtime definition for gjs/gts, but we can add a re-export for scoped-class for loose mode: https://github.com/soxhub/ember-scoped-css/blob/main/ember-scoped-css/src/runtime/index.ts#L7