You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome Uncaught SyntaxError: The requested module './bulma-calendar.min.js' does not provide an export named 'bulmaCalendar
Input Code
import{bulmaCalendar}from"./bulma-calendar.min.js";$(document).ready(function(){// Initialize the picker with the ID of the input fieldconstdatePicker=bulmaCalendar.attach('#date-picker',{type: 'date',dateFormat: 'DD-MM-YYYY',displayMode: 'inline',});// Add an event listener to the picker to get the selected datedatePicker.on('select',date=>{console.log(date);});});
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/jsbulma-calendar/dist/css into my static/jsstatic/css folders in my Django project.
Here are the import statements for both bulma.io and bulma-calendar in Djangos template engine
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.
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 projectThe text was updated successfully, but these errors were encountered: