Open DMunkei opened 1 year ago
Don't know if this would be helpful, but ran into the same issue recently, though I'm using Go instead. Based on what worked for me, you might need to adjust your import as follows.
import * as bulmaCalendar from "./bulma-calendar.min.js";
Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
Bug Report
Environment
Current Behavior Trying to import the sample code from the
Quick start
section. Fails with the following error messages.Uncaught SyntaxError: ambiguous indirect export: bulmaCalendar
Uncaught SyntaxError: The requested module './bulma-calendar.min.js' does not provide an export named 'bulmaCalendar
Input Code
Additional context/Screenshots I'm trying to import this into a Django 4.1.5 project, that's already using bulma.io. I cloned the repo and copied the contents of
bulma-calendar/dist/js
bulma-calendar/dist/css
into mystatic/js
static/css
folders in my Django project.Here are the import statements for both
bulma.io
andbulma-calendar
in Djangos template engineSteps to reproduce
bulma-calendar/dist/js
bulma-calendar/dist/css
to the static folder in a Django project