Closed Mr-barebone closed 1 week ago
occurs because you're trying to import a default export from a module that does not have a default export.
Bck.js not have default export , it only had named exports // Bck.js export function Bck_fetchDefaultFile() { // Your code for the function } Curly braces are used to import named exports. This tells the JavaScript engine you're importing a specific function or variable by name.
import { Bck_fetchDefaultFile } from "./Bck.js"; // Notice the curly braces
Uncaught SyntaxError: The requested module 'http://127.0.0.1:5500/Frontend/Bck.js' doesn't provide an export named: 'default'