Level 4
I had this issue on windows 10 too, fixed it by giving yarn a try (npm install yarn -g) and then running yarn to update/install the dependencies instead of npm. Now it works with no errors.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I had this issue on windows 10 too, fixed it by giving yarn a try (npm install yarn -g) and then running yarn to update/install the dependencies instead of npm. Now it works with no errors.
This error occurred to me when I tried to use a for ...of loop in my code
ERROR in ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/contractuals/components/ApplicantForm.vue
Module build failed: Error
Then I tried to clean my node_modules directory, upgrade node and npm install again the packages but with no luck
Then I tried to follow @benjackson 's proposed solution and yarn add buble-loader After this I run gulp again and I got a different error
{ [Error: ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/contractuals/components/ApplicantForm.vue
Module build failed:
1085 : },
1086 : methods: {
1087 :
1088 : tabHasErrors(...errors) {
1089 : for (let error of errors) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing (1089:16)
Error
I shall try to dig further into this error and look if I can find a solution
Please or to participate in this conversation.