How To Import and Export Modules in Node.js Tutorial

preview_player
Показать описание

— Follow Me —
— Thanks! —

Рекомендации по теме
Комментарии
Автор

you can add "type" : "module" into your package.json file and add .js at the end of the imported file :) you dont need papel

silverzprogrammer
Автор

Thanks for getting straight to the point.

MrTabasham
Автор

Awesome, this is the video I didn't know I was looking for that cleared a lot up!

robwhitaker
Автор

The last 1 minute and 58 seconds solves the problem I've had for the past 30 minutes. If that isn't called programming, I don't know what is xD

jacquesoberholzer
Автор

Thanks for the help sir. I was stuck on these for hours. Last time i set up a project simple "esm" package worked but this time it was not working. This video was both helpful and a nice learning experience :)

NiharMakwana-pjll
Автор

that intro song has to be the most badass thing a CS youtuber has ever done. Literally turned off my music to jam out. (1 min into the tut seems good tho)

gavingarcia
Автор

This was so helpful. Thank you so much! :D

pablocorleone
Автор

thanks james sir for this video hope your are good!!!! Love from

roasted_boy
Автор

Thanks, this video was great for me.

astarothblu
Автор

Do you think its not worth learning PHP anymore James? Is Node the way forward? It seems like there is so much more to do with Node, and so many complexities that are taken care of in Frameworks like Laravel?

adante
Автор

man i just learned about this and its so cool. Is Babel used a lot in the real world/work? I'm trying to learn back-end dev with NodeJS :D

kez
Автор

Okay so what if you had a index.html and your linking app.js to it and you have a function inside lib and inside the lib function you have a console.log does this show up in the browser console log? I been having this issue which is why i'm asking about it. the script html element has a type of module too. But, for some reason console.logs in another script won't show idk whats going on

TheNamesJT
Автор

Thanks mate, this video did help me a lot :D

dominikdev
Автор

your are just keep the video short and simple.. you made a bit complex

ShubhamSehraPlus
Автор

hi nice project.
if to use requeried i dont need babel.

why use import +babel.

what happed if i already have some projects with _required and module_

rogercolque
Автор

hi, I have started working on node js after installing it and made code that work perfect in terminal, but then I needed to transfer js results to html file.

whenever I include js file with require statements I get weired errors.

officework
Автор

i have a problem i don't know where to put the "type":"module" in json packge pls help? im using visual code

alfonstabz
Автор

Help me to get rid of it
Traceback (most recent call last): File "./configure", line 20, in <module> from distutils.spawn import find_executable ModuleNotFoundError: No module named 'distutils

madnimunne
Автор

2:10 Can you tell me why now either of ‘const/let’ is required?
When I assign anything like x = 4; normally I don't need to specify ‘const’ or ‘let’.

oosmanbeekawoo
Автор

Looks to me your seeking trouble with that Babbel!

oosmanbeekawoo