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
First import is processed properly, but the second one throws an error:
TypeError: Cannot read property '1' of null
at walkThroughtImports (C:\projects\my-project\node_modules\postcss-cachebuster\index.js:84:26)
It is caused because walkThroughtImports() uses regexp with 'g' flag but do not reset the lastIndex back to 0 after first usage. Adding pattern.lastIndex = 0; before calling pattern.exec(atrule.params) solves the problem.
The text was updated successfully, but these errors were encountered:
I'm using
[email protected]
and I have css file with two imports:First import is processed properly, but the second one throws an error:
It is caused because
walkThroughtImports()
uses regexp with 'g' flag but do not reset the lastIndex back to 0 after first usage. Addingpattern.lastIndex = 0;
before callingpattern.exec(atrule.params)
solves the problem.The text was updated successfully, but these errors were encountered: