Linked Questions

Popular Questions

Module is undefined after import

Asked by At

As you can see, Faker.Js is imported.

import * as f from './faker.fr.js'
window.addEventListener("load",main);

function main (event) {
    console.log("main");
    //test if faker.js is working
    console.log(f.faker.name.findName());          
}

But the result is this error:

TypeError: f.name is undefined[Learn More]

Related Questions