nomelancholy / gatsby-TakeKnowledge

MIT License
0 stars 0 forks source link

bugfix/cannot-use-import-statement-outside-a-module/ #4

Open utterances-bot opened 3 months ago

utterances-bot commented 3 months ago

Cannot use import statement outside a module 에러 해결 | Take Knowledge

버그 발생 상황 기존에 index.js에 쭉 작성했던 코드를 다른 js파일로 옮겨서 module로 import 해 사용하도록 했습니다. 글로 쓰니까 뭔가 장황한데 그냥 이 지경이었던 index.js 파일을 이렇게 정리했다는 얘기입니다. 그런데 그 후 start를 했더니 위와 같은 에러메시지와 함

https://takeknowledge.netlify.app/bugfix/cannot-use-import-statement-outside-a-module/

ImUB commented 3 months ago

감사합니다 덕분에 쉽게 해결했습니다.