You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
This plugin gives TypeError: src/components/PasswordReset/PasswordReset.jsx: Cannot read property 'forEach' of undefined when using cwd and id.
Example:
After doing some digging, it appears this commit caused the regression.
This is because the first time we call config is here (where cwd defaults to process.cwd()). The second time is here where cwd is whatever you set it in .baberc, so we purge module cache. However, the old ids are still there and we try to loop over them here.
I'd be happy to make a PR once it's verified this is a bug, and that the offending commit can't just be reverted as a fix.
The text was updated successfully, but these errors were encountered:
danny-andrews
changed the title
Breaks when using "cwd" and "id"
Breaks when using "cwd" and "id" config options
Aug 8, 2017
This plugin gives
TypeError: src/components/PasswordReset/PasswordReset.jsx: Cannot read property 'forEach' of undefined
when usingcwd
andid
.Example:
After doing some digging, it appears this commit caused the regression.
This is because the first time we call
config
is here (wherecwd
defaults toprocess.cwd()
). The second time is here wherecwd
is whatever you set it in.baberc
, so we purge module cache. However, the old ids are still there and we try to loop over them here.I'd be happy to make a PR once it's verified this is a bug, and that the offending commit can't just be reverted as a fix.
The text was updated successfully, but these errors were encountered: