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
Then, the file "/assets/plugins/air-datepicker/index.es.js":
import AirDatepicker from './air-datepicker.js';
export AirDatepicker; //or export default AirDatepicker;
But i get errors like: The requested module './air-datepicker.js' does not provide an export named 'default' (at index.es.js) or Uncaught (in promise) SyntaxError: Unexpected token 'export' (at index.es.js:15:1)
Please if somebody can help me how to import - export without errors.
Thank You!
The text was updated successfully, but these errors were encountered:
I'm battling these module-specific errors, too. These libraries describe themselves as "dependency-free", but then are written in a way where "loading as a module" is a dependency in and of itself.
I'm currently having trouble loading a locale file dynamically, rather than using the import statement.
I hope one day this overcomplication of JavaScript can return to some level of sanity. 🤓
Error: The requested module './air-datepicker.js' does not provide an export named 'default'a
In main html I load script main.js
Then, the file "/assets/plugins/air-datepicker/index.es.js":
But i get errors like: The requested module './air-datepicker.js' does not provide an export named 'default' (at index.es.js) or Uncaught (in promise) SyntaxError: Unexpected token 'export' (at index.es.js:15:1)
Please if somebody can help me how to import - export without errors.
Thank You!
The text was updated successfully, but these errors were encountered: