如您所见,Faker.Js已导入。
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());
}
但是结果是这个错误:
TypeError: f.name is undefined[Learn More]