Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Cannot read property 'Symbol(Symbol.iterator)' of path.match #124

@awulkan

Description

@awulkan

I installed the starter template and ran npm run dev to get this error below.

NuxtServerError

Module build failed: TypeError: Cannot read property 'Symbol(Symbol.iterator)' of path.match at
 getSection (C:\Users\USER\Desktop\vue\nuxtent\my-
site\node_modules\nuxtent\dist\loader.js:19:33) at Object.module.exports
 (C:\Users\USER\Desktop\vue\nuxtent\my-
site\node_modules\nuxtent\dist\loader.js:114:19)
node_modules\nuxtent\dist\loader.js
}

const getSection = path => {
  // capture '/content/closestSubsection' or  '/content'
  // eslint-disable-next-line no-unused-vars
  const [match, section] = path.match(/\/content([/][a-zA-Z\-_]*|$)/)
  return section === '' ? '/' : section
}

const getComponentBaseName = (baseDir, name, extensions) => {
  const baseName = join(baseDir, name)

Js
getSection@19:33

Windows 10
Node 8.9.1
Latest Nuxtent version

This question is available on Nuxt.js community (#c104)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions