diff --git a/index.js b/index.js index 83ff4fd..f2b8cb9 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ function getRandomWord(wordCollection) { } export async function generateRandomName() { - const [adjectives, animals] = await Promise.all([ + const [{ default: adjectives }, { default: animals }] = await Promise.all([ import('./data/adjectives.js'), import('./data/animals.js') ])