Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christopheSeeka opened this issue Mar 2, 2021 · 5 comments

Comments

@christopheSeeka
Copy link

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
Copy link
Author

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$/)

@enxoco
Copy link

enxoco commented Mar 3, 2021

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.

@EvanAgee
Copy link
Owner

EvanAgee commented Mar 3, 2021

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

@christopheSeeka
Copy link
Author

Sent the PR :)

@jucajuca
Copy link

I confirm the issue and the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants