Skip to content

Missing exports #328

Description

@danports

Error Description

On 5.3.0, I was able to import this library with import 'bootstrap5-toggle/js/bootstrap5-toggle.ecmas.js' in a JavaScript module, and @import 'bootstrap5-toggle/css/bootstrap5-toggle.css' in a Sass file. Those imports no longer function on 5.3.1+ due to the exports defined in the package.json, which block the import of any entry points not defined there:

Missing "./js/bootstrap5-toggle.ecmas.js" specifier in "bootstrap5-toggle" package`

I can change the JavaScript module import to import 'bootstrap5-toggle' but I can't see how to import the CSS.

Steps to Reproduce

See above.

Expected Behavior

See above.

Actual Behavior

See above.

Severity

Severe

Bootstrap 5 Toggle Version

5.3.3

Bootstrap version

5.3.8

Other

No response

Bug Report Checklist

  • Confirm that you agree to follow the project's code of conduct.
  • Confirm that you have reviewed open and rejected anomalies and have not found the reported anomaly.

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

    bugSomething isn't working

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions