Closed ttsukagoshi closed 9 months ago
TypeError: Cannot read properties of undefined (reading 'forEach') 19 | export function findJsFiles(dir, jsFileList = []) { 20 | const files = fs.readdirSync(dir, { withFileTypes: true }); > 21 | files.forEach((fileDirent) => { | ^ 22 | const filePath = path.join(dir, fileDirent.name); 23 | const extName = path.extname(filePath); 24 | if (fileDirent.isDirectory()) { at findJsFiles (postbuild/postbuild.mjs:21:9) at postbuild (postbuild/postbuild.mjs:87:22) at Object.<anonymous> (postbuild/postbuild.mjs:102:1) at Object.<anonymous> (test/postbuild.test.ts:1:1)
TypeError: Cannot read properties of undefined (reading 'forEach')
19 | export function findJsFiles(dir, jsFileList = []) { 20 | const files = fs.readdirSync(dir, { withFileTypes: true }); > 21 | files.forEach((fileDirent) => { | ^ 22 | const filePath = path.join(dir, fileDirent.name); 23 | const extName = path.extname(filePath); 24 | if (fileDirent.isDirectory()) { at findJsFiles (postbuild/postbuild.mjs:21:9) at postbuild (postbuild/postbuild.mjs:87:22) at Object.<anonymous> (postbuild/postbuild.mjs:102:1) at Object.<anonymous> (test/postbuild.test.ts:1:1)