vuejs-wordpress-theme-starter
vuejs-wordpress-theme-starter copied to clipboard
TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
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
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$/)
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.
Thanks @christopheSeeka and @enxoco. Would one of you mind opening a PR to correct this?
Sent the PR :)
I confirm the issue and the fix