ES6 forEach an array, why did you report this error?

this is a reported error:

clipboard.png

 menu.js :
module.export = [{
    name: "cc-Box Module",
    id:"crossChexBox",
    sub: [{
        name: "device ",
        componentName: "DeviceStatus"
    }, {
        name: "user ",
        componentName: "UserStatus"
    }]
},{
    name: "websiteIcon Module",
    id:"icon",
    sub:[{
        name: "anviz cn-icon",
        componentName:"AnvizCnIcon"
    }, {
        name: "anviz en-icon",
        componentName: "AnvizEnIcon"
    }, {
        name: "u-tec icon",
        componentName: "UtecEnIcon"
    }, {
        name: "box icon",
        componentName: "BoxEnIcon"
    }, {
        name: " icon",
        componentName:"CCEnIcon"
    }]
}]

iterate through this data set in vue-router:

import menus from "@/config/menu"
var routes = [];
menus.forEach((item) => {
  item.sub.forEach((sub) => {
    routes.push({
      path: `/${sub.componentName}`,
      name: sub.componentName,
      component: () => import(`@/components/${sub.componentName}`)
    })
  })
})

compiling does not report an error, but the browser reports such an error that the page cannot be displayed.
what is wrong with it? Thank you!

Dec.24,2021

module.exports is missing s

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb0e86-230e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb0e86-230e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?