Start Using ES Modules Now

  Рет қаралды 24,084

Engineer Man

Engineer Man

Жыл бұрын

The time to convert CommonJS projects to ESM is upon us. This will allow you to use import and export statements, top-level await, and many other features. This will also unify what your Node.js code and your frontend bundled code looks like. All in all a good idea, I promise.
Hope you enjoyed the video!
Check out the code here:
github.com/engineer-man/youtu...
Join my Discord server and come say hi:
/ discord
Check out some code on my GitHub:
github.com/realtux
github.com/engineer-man/youtube
Other Social:
/ engineerman
/ _engineerman
www.flaticon.com/free-icons/tick Tick icons created by Roundicons - Flaticon
www.flaticon.com/free-icons/c... Cross icons created by Roundicons - Flaticon

Пікірлер: 43
@sexylol
@sexylol Жыл бұрын
Welcome back!!
@DJ-rr7cj
@DJ-rr7cj Жыл бұрын
Nice! Welcome back EM! Another great explanation of something I’ll most likely need to use in the near future :)
@Titokstro1
@Titokstro1 Жыл бұрын
Welcome back! And with great content!!
@RobertWildling
@RobertWildling 6 ай бұрын
Glad there is new stuff coming from you! Always straight to the point no BS stuff! Thank you very much! :-)
@umairgillani699
@umairgillani699 Жыл бұрын
Wow.. good to see u back EM in similar style!! Love the content. Waiting for the streams to get started as well!!
@Aetheridon
@Aetheridon Жыл бұрын
great to see you back!
@semosancus5506
@semosancus5506 10 ай бұрын
Thank you so much. I have been trying to figure out this simple thing for a few hours and you had the perfect answer.
@MohsenFarajYT
@MohsenFarajYT Жыл бұрын
Perfect and short explanation as always... Welcome back :) btw you look great 🔥
@user-rc2jb4rk2b
@user-rc2jb4rk2b 11 ай бұрын
Thanks for the useful content Engineer Bro. Missed you.
@gensys244
@gensys244 Жыл бұрын
Much better your back to great content !
@QuantumCrafts
@QuantumCrafts Жыл бұрын
Very useful and easy to follow tutorial! Keep it up
@0x007A
@0x007A 9 ай бұрын
The most concise video covering this topic.
@simonmaracine4721
@simonmaracine4721 Жыл бұрын
I'm glad you're still here!
@tapu_
@tapu_ Жыл бұрын
I keep writing the python syntax by mistake (from x import y) instead of the js syntax(import y from x)
@cs-za
@cs-za Жыл бұрын
Welcome back!
@khaoscero
@khaoscero Жыл бұрын
this is useful. its a switch we all have seen coming and avoiding so far
@alexandervashchuk7795
@alexandervashchuk7795 4 ай бұрын
thanks for clarity!
@tkdevlop
@tkdevlop Жыл бұрын
yaa face this issue when using node-fetch in a interview I was like wtf why require not working 😂
@EngineerMan
@EngineerMan Жыл бұрын
Ha.
@DavidWTube
@DavidWTube Жыл бұрын
Where was this video two weeks ago! Ran into these issues using MUI with the Next.js 13.4 "app router". Just getting the appBar to work from MUI with the new Next routing was a bear.
@Codester145
@Codester145 Жыл бұрын
Welcome back. You've been missed.
@ZacKoch
@ZacKoch Жыл бұрын
PARTY ON! ps - the reason why he's been gone so long is because he's been trying to learn how to operate vscode 😂
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars Жыл бұрын
🤣
@EngineerMan
@EngineerMan Жыл бұрын
It's true.
@Edward3DFX
@Edward3DFX 11 ай бұрын
hi, I need help re configuring the .bin file for the Firmware for a XYZ PartPro 300xt 3D Printer - so that the machine can use any filament - is there any way to do this with a HEX editor?? or reverse hacking the firmware ? please help-
@collinskchumba
@collinskchumba Жыл бұрын
welcome back engineer
@farhanprine
@farhanprine 2 ай бұрын
Easy to follow. Cheers
@johnflynn2109
@johnflynn2109 11 ай бұрын
Are ODB-2 car computers easy to manipulate? This is a big shot in the dark to get my mid 90s truck to run right.
@thegreatdelusion
@thegreatdelusion 10 ай бұрын
I used to hate it so I stuck with require. Then only recently I found out there's actually top level await and that's really a gamechanger. I'm using esm in all my new projects now.
@krustserver
@krustserver Жыл бұрын
Reminds me when I had to convert my project to ESM when trying to use GOT http library.
@umarchy
@umarchy 11 ай бұрын
Thanks for the video
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars Жыл бұрын
thank you, good video :)
@ScottzPlaylists
@ScottzPlaylists Жыл бұрын
So glad your back.. Are you getting into AI Programming?
@DMTheLoopGod
@DMTheLoopGod Жыл бұрын
Woowoo!
@andrewscott1253
@andrewscott1253 2 ай бұрын
Why did ES Modules ever catch on? Syntactically they are not as consistent and intuitive as common JS and they are much more fiddly to get right.
@manfrombritain6816
@manfrombritain6816 11 ай бұрын
wait a minute... engineer man has epic hair under that hat?
@slendi9623
@slendi9623 Жыл бұрын
WB!!!!!!
@DemPilafian
@DemPilafian 10 ай бұрын
*_"It is time to get rid of CommonJS."_* No. It's long past time. This transition period has been 10x more painful than necessary because so many people clung onto CommonJS.
@NStripleseven
@NStripleseven Жыл бұрын
(y’all weren’t doing this already?)
@XxXK9
@XxXK9 Жыл бұрын
Can you make more videos please? How about doing some code reviews?
@Nunya58294
@Nunya58294 11 ай бұрын
No
@atlantic_love
@atlantic_love Жыл бұрын
Why do you look so tired? Are you feeling okay?
@ScottzPlaylists
@ScottzPlaylists Жыл бұрын
Video IDEA: Love to hear your comments on these: Mojo, Modular, MLIR
Require vs Import Javascript
22:39
Monsterlessons Academy
Рет қаралды 75 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 626 М.
The delivery rescued them
00:52
Mamasoboliha
Рет қаралды 9 МЛН
ПООСТЕРЕГИСЬ🙊🙊🙊
00:39
Chapitosiki
Рет қаралды 57 МЛН
Don't Be Spammy Posting On Social Media!
1:24
B Serious
Рет қаралды 7
Understanding Fork Bombs in 5 Minutes or Less
5:55
Engineer Man
Рет қаралды 165 М.
Difficult Programming Concepts Explained
11:13
Engineer Man
Рет қаралды 68 М.
My Thoughts On JetBrains Fleet
8:01
Engineer Man
Рет қаралды 26 М.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Josh tried coding
Рет қаралды 202 М.
how NASA writes space-proof code
6:03
Low Level Learning
Рет қаралды 2,1 МЛН
JavaScript ES6 Modules
7:39
Web Dev Simplified
Рет қаралды 441 М.
Import vs Require: The Biggest JavaScript Divide
4:03
Matt Pocock
Рет қаралды 49 М.
ПК с Авито за 3000р
0:58
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2 МЛН
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 3,3 МЛН
гений починил ноутбук
0:29
Dear Daria
Рет қаралды 2,3 МЛН
iPhone 15 Unboxing Paper diy
0:57
Cute Fay
Рет қаралды 2,4 МЛН