ES6 Modules: ES6 Import and Export - All possible ways

preview_player
Показать описание
The video shows all possible ways how you can export and import ES6 modules
Рекомендации по теме
Комментарии
Автор

This was such a good explanation and demo. The first and last video I'll need on this 😊.

edgaralcantara
Автор

Thanks, my knowledge increased by 0.00001%

pastuh
Автор

Really useful video for me, also nice sound and video quality. Keep up!

EspoGTR
Автор

thank u so much now its very clear to me

prasadpg
Автор

i was hoping you would have shown this error " React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object."
That seems to refer to an import/export problem.
Thank you for the video anyway i learned something

koko
Автор

That's great for pure JS. I was hoping for a demonstration on how to use it within an HTML document since it seems there can still be errors thrown. Doing quick stackoverflow checks always leads to "it's not supported" or "use this experimental blah blah blah".

benjamingarrard
Автор

thank you for the tutorial
But I have a problem because I need to use http protocols to use the export module.

As all of us know we can create android game with the help of phones build,

my question is what will happen if I create my game with export and import method, there's no server or live server available.

Thank you in a advance if there's a way to solve it.

watchmytvjctechnology
Автор

Wondering if you would be kind enough advise. I'm trying to get a live binding using ESM.
I have the main file that is generating a data set within an object. That is then being exported to other files where they are will monitor activities in async methods to update variables within that object. Because of the nature of what I'm wanting to do, I wish to have just 1 set of data in memory and all files are referencing that and changing it.
I have this setup in node using mjs with experimental modules enabled but for some reason other files seem to be getting a copy of my master object. Is this kind of functionality supported by default in ESM? Currently using export {ObjName}
Grateful for any advise.

LightWrathme
Автор

Luxon Es6 import not working pls help


import { DateTime } from 'luxon';

SyntaxError: The requested module 'luxon' is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export.
For example:
import pkg from 'luxon';
const { DateTime } = pkg;

hayathbasha
Автор

i don't event know why import working on every where in videos but not in my case showing error..?may be its not supported in my 68version firfox dev

Sahilbc-wjqk