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
import Datepicker from './js/Datepicker.js';
export Datepicker;// I tried and export default Datepicker;
But i get errors like: The requested module './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)
Please if somebody can help me how to import - export without errors.
Thank You!
The text was updated successfully, but these errors were encountered:
How can be imported as module in html pages ?
I tried:
In main html I load script main.js with click listener to an input :
And index.es.js file
But i get errors like: The requested module './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)
Please if somebody can help me how to import - export without errors.
Thank You!
The text was updated successfully, but these errors were encountered: