We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just wanted to drop this here:
I have a project that uses rollup-plugin-postcss with postcss-less and when I tried to add less-plugin-lists it broke the build:
rollup-plugin-postcss
postcss-less
less-plugin-lists
[!] (plugin commonjs--resolver) Error: Error evaluating function `each`: Cannot read properties of undefined (reading 'slice')
The error was thrown when the parser hit an each() in a .less file.
each()
.less
I've poked a bit at the problem and it looks like something in for.js breaks Less' own each(). As soon as I remove the line
for.js
require("./for")(less, manager);
from main.js, everything works fine.
main.js
Relevant rollup config:
import postcss from 'rollup-plugin-postcss'; import autoprefixer from 'autoprefixer'; import postcssImport from 'postcss-import'; { minimize: true, plugins: [ autoprefixer, postcssImport, ], use: [ ['less', {plugins: [new LessPluginLists()],}], ] },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just wanted to drop this here:
I have a project that uses
rollup-plugin-postcss
withpostcss-less
and when I tried to addless-plugin-lists
it broke the build:The error was thrown when the parser hit an
each()
in a.less
file.I've poked a bit at the problem and it looks like something in
for.js
breaks Less' owneach()
. As soon as I remove the linefrom
main.js
, everything works fine.Relevant rollup config:
The text was updated successfully, but these errors were encountered: