vuejs-wordpress-theme-starter icon indicating copy to clipboard operation
vuejs-wordpress-theme-starter copied to clipboard

TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))

Open christopheSeeka opened this issue 4 years ago • 5 comments

Hello,

After npm install and running npm run watch im getting the following:

> webpack --watch --config ./webpack/webpack.config.js

G:\WORK\www\wp-content\themes\custom\node_modules\webpack-cli\bin\cli.js:93
                                throw err;
                                ^

TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))

Any idea what it could be?

Thank you in advance

christopheSeeka avatar Mar 02 '21 09:03 christopheSeeka

Working if i replace in webpack/loaders/files:

const [, themeName] = __dirname.match(/\/wp-content\/themes\/([^/]+)\/webpack\/loaders$/)

with

const themeName = __dirname.match(/\/wp-content\/themes\/([^/]+)\/webpack\/loaders$/)

christopheSeeka avatar Mar 02 '21 10:03 christopheSeeka

Same issue for me. I just cloned this repo today to try out. Using yarn instead of npm but getting the same error. I took @christopheSeeka advice and it seems to have resolved the issue for me as well.

enxoco avatar Mar 03 '21 15:03 enxoco

Thanks @christopheSeeka and @enxoco. Would one of you mind opening a PR to correct this?

EvanAgee avatar Mar 03 '21 16:03 EvanAgee

Sent the PR :)

christopheSeeka avatar Mar 03 '21 16:03 christopheSeeka

I confirm the issue and the fix

jucajuca avatar Nov 17 '21 15:11 jucajuca