Uncaught SyntaxError: Cannot use import statement outside a module

Publicado em: 27 Junho 2022
no canal de: DARKPINK_Electronics
1,126
6

like, share , subscribe
0:00 start
0:07 problem
0:20 js file to import in another one
0:32 js file imported in html
1:05 html code
1:15 SOLUTION
1:35 last test
2:17 end

Quick steps:
1 - Go to your HTML file where you've imported JS code
2 - add to {script src="index.html"} {/script} the following words: type="module"
3 - it should look like: {script type="module" src="index.js"} {/script}
4 - test

Here are the files used in the tutorial:
https://drive.google.com/drive/folder...

Follow me on :

Electronics Channel :    / @darkpink_electronics4523  
Music Channel :    / @kzbeats_0  
twitter :   / darkpinkp  
facebook :   / kzkamalzaitar   (more active here)
soundcloud :   / user-163169075  


#DarkPink_Electronics #electronics #programming #es6 #js #html


Nesta página do site você pode assistir ao vídeo on-line Uncaught SyntaxError: Cannot use import statement outside a module duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário DARKPINK_Electronics 27 Junho 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,126 vezes e gostou 6 espectadores. Boa visualização!