-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: node.getIterator is not a function #1414
Comments
I live in the East eight international time zone, so if you have any questions, you may not be able to reply in time. Please forgive me for the inconvenience. |
Seems like I will create an issue in |
Thank you for your timely reply!!! At first, I thought that it might be the "postcss less" problem. However, the code reported "postcss", so I came here to submit the error. Now I will go to "postcss less" to submit this error. |
Here is a correct issue shellscape/postcss-less#150 |
Hello, {
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader",
"postcss-loader", // if I comment out this line, it will work again
]
}, This is the full stack trace: ERROR in ./src/editor/editor.vue?vue&type=style&index=0&lang=scss& (./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/editor/editor.vue?vue&type=style&index=0&lang=scss&)
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
TypeError: node.getIterator is not a function
at LazyResult.visitTick (C:\Users\Juraj\git\addons\PrivateNotes\node_modules\postcss\lib\lazy-result.js:528:33)
at LazyResult.runAsync (C:\Users\Juraj\git\addons\PrivateNotes\node_modules\postcss\lib\lazy-result.js:408:30)
at LazyResult.async (C:\Users\Juraj\git\addons\PrivateNotes\node_modules\postcss\lib\lazy-result.js:221:30)
at LazyResult.then (C:\Users\Juraj\git\addons\PrivateNotes\node_modules\postcss\lib\lazy-result.js:206:17)
@ ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/editor/editor.vue?vue&type=style&index=0&lang=scss& 4:14-328
@ ./src/editor/editor.vue?vue&type=style&index=0&lang=scss& 1:0-364 1:0-364
@ ./src/editor/editor.vue 4:0-67
@ ./src/editor/editor.ts 10:0-34 26:49-55 And my libraries:
I'm trying to migrate to Webpack 5 and this is the last problem I'm facing.
EDIT:So I've managed to track down the issue to the "postcss-comment" library which was not updated in 3 years :( |
any ideas how to track which library is causing this issue? |
node: 14.11.0;
npm: 6.14.8;
operating system: Windows 10;
postcss: 8.0.5;
postcss-less: 3.1.4;
Error description:
ERROR in ./src/styles/less/basic/Basic.less
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
TypeError: node.getIterator is not a function
at LazyResult.visitTick (G:\SNWS\sn-micro-front-web-project-template\node_modules\postcss\lib\lazy-result.js:470:33)
at LazyResult.runAsync (G:\SNWS\sn-micro-front-web-project-template\node_modules\postcss\lib\lazy-result.js:357:30)
at async Object.loader (G:\SNWS\sn-micro-front-web-project-template\node_modules\postcss-loader\dist\index.js:94:14)
@ ./src/tplEJS/pages/AuditLogIndex.ejs (./node_modules/html-webpack-plugin/lib/loader.js!./src/tplEJS/pages/AuditLogIndex.ejs) 83:10-42
step:
When I use the following configuration, an error will be reported: TypeError: node.getIterator is not a function.
{
test: /.less$/i,
use: [
{
loader: 'file-loader',
options: {
name: '[name]_[sha512:contenthash:hex:6].css',
outputPath: './styles/',
emitFile: true,
esModule: false,
}
},
{
loader: 'extract-loader',
},
{
loader: 'css-loader',
options: {
url: true,
import: true,
importLoaders: 2,
esModule: false,
},
},
}
explain:
When processing ".less" files, if "postcss-loader" is not used, no error will be reported and it can be successfully compiled. If "postcss-loader" is used, an error will be reported. Moreover, the above configuration will not report an error in postcss 7. X, but it will be reported if it is updated to postcss 8. X.
The text was updated successfully, but these errors were encountered: