Install fancyapps Fancybox, module parse failed 'unexpected token'

I did exclude the lines, now I am getting following error:

in ./node_modules/@fancyapps/ui/src/Fancybox/Fancybox.js

`Module build failed:
161 : /**
162 : * Bind event handlers for referencability
163 : */
164 : bindHandlers() {
165 : for (const methodName of [
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 (165:4)

@ ./resources/assets/scripts/main.js 12:0-66
@ multi ./resources/assets/build/util/…/helpers/hmr-client.js ./scripts/main.js ./styles/main.scss`

Does anyone know how to fix this error?
Thanks! :slight_smile: