sindresorhus / globby

User-friendly glob matching
MIT License
2.53k stars 129 forks source link

fix: try...catch #170

Closed JiHong88 closed 3 years ago

JiHong88 commented 3 years ago

When building in the nuxt environment, an error occurs in that part. The error was resolved by correcting the catch clause.

(node:35566) UnhandledPromiseRejectionWarning: /Users/jihonglee/develop/co-work/modern-apim-bff/node_modules/globby/index.js:28
        } catch {

        } catch {
                ^

SyntaxError: Unexpected token {
    at Object.Module._extensions..js (module.js:664:10)
    at Object.Module._extensions..js (module.js:664:10)

build env:

"nodemon": "^1.18.9",
"nuxt": "^2.14.12",
"vue": "^2.6.12",
sindresorhus commented 3 years ago

You need to upgrade your Node.js version.