79198190

Date: 2024-11-17 21:31:19
Score: 1
Natty:
Report link

By default, <script> tags are interpreted as regular scripts, not as ES6 modules. Specify the script as a module using the type="module" attribute.

<body>
<-- some html>
</body>
<script type="module">
import fs from "fs";
// some javascript
</script>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aung Min Khant