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
For whatever reason, babel is currently calling this plugin twice in my project (I verified this with console logs). Due to the way Node handles repeated requires, the require() call on my postcss.config.js was returning an empty object on the subsequent call. This in turn causes an error from postcss-load-config, which doesn't handle an empty config object correctly (and it would end up with the wrong options even if it did).
I've already put in a PR that resolves this issue by removing the config from Node's resolve cache before it gets re-required.
The text was updated successfully, but these errors were encountered:
For whatever reason, babel is currently calling this plugin twice in my project (I verified this with console logs). Due to the way Node handles repeated requires, the require() call on my postcss.config.js was returning an empty object on the subsequent call. This in turn causes an error from postcss-load-config, which doesn't handle an empty config object correctly (and it would end up with the wrong options even if it did).
I've already put in a PR that resolves this issue by removing the config from Node's resolve cache before it gets re-required.
The text was updated successfully, but these errors were encountered: