Cannot use import statement outside a module | Unexpected Token Import | Unexplected Token Export

preview_player
Показать описание
Cannot use import statement outside a module | Unexpected Token Import | Unexplected Token Import | ES6 Javascript | Dr Vipin Classes

About this video:
In this video, I explained about following topics:
1. How to remove error "cannot use import statement outside a module" in ES6 Javascript while compiling with node?
2. How to remove error "cannot use import statement outside a module" in ES6 Javascript while using with HTML?

#javascript, #es6

My Other Playlists
1. Data Structure using Golang

2. Web Development using Golang

3. Go / Golang Tutorials

4. Kotlin Android Tutorials

5. Spring Boot Tutorials

6. Spring Framework

7. JavaScript ES 6

8. Java Features

9. Seaborn Python

10. Firebase with Kotlin

11. Kotlin Android Jetpack Library & MVVM

12. Kotlin SQLite and ROOM API Tutorials

13. Java Tutorials

14. MongoDB for Beginners

15. Java Multi-Threading

16. Java File Handling

17. Node JS for Beginners

18. Kotlin for Beginners
Рекомендации по теме
Комментарии
Автор

SUMMARY: change the file names to .mjs instead of .js for both the files that involve the import/export process. This worked for me using visual studio code. Thanks for the video!

johnm
Автор

thank you, i was stuck on this error and this is the video that helped me solve it, bless you

fishseafood
Автор

Thank you so much. I spent an hour trying to fix but no avail. Your video saved me 🙏🏾

nicholasbrown
Автор

Sir please make a video on unexpected token error in reactjs

KaranYadav-xumz
Автор

Not working. Chrome giving me CORS policy error. Advise please.

timtech