๋ฐ์ํ
<script type="module"> ์ฐ๋๋ฐ ์ค๋ฅ ๋ฐ์ ใ ใ
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
import mimetypes
mimetypes.add_type('application/javascript', '.mjs')
stackoverflow.com/questions/56587108/flask-how-to-use-es6-modules/62236927#62236927
๋ฐ์ํ
'Python > Flask' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python] Flask ์ค๋ฅ๋ค (0) | 2022.07.21 |
---|---|
[Python] Flask - api, sqlalchemy ์ฌ์ฉ๋ฐฉ๋ฒ (0) | 2022.07.20 |
[Flask] ํ์ผ ์ ๋ก๋ (0) | 2021.04.13 |
[Python/Flask] ์ธ๋ถ Front๋ก Redirect ํ ๋ ๋ฐ์ดํฐ ์ ์ก (0) | 2021.01.09 |
OAuth ๊ตฌ๊ธ ์ธ์ฆ ๊ณผ์ ์ฐธ๊ณ ์ฌ์ดํธ (0) | 2020.10.06 |