Currently, I am in the process of integrating the PhotoEditor SDK library into my Ruby on Rails project. To achieve this, I have been meticulously following the installation guidelines provided in the official documentation. However, during the setup process, a particular error has surfaced in the DOM console:
"Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: /Users/robeen/dev/cocoon-immo/node_modules/photoeditorsdk/esm/chunk-2FC7YEBB.js: unknown Statement of type "ForOfStatement""
Despite diligently executing all the necessary steps outlined in the instructions, including installing the required peer dependencies such as React, React DOM, and Styled Components, I am continuing to experience the aforementioned error. Any assistance or guidance offered to help resolve this matter would be greatly appreciated. Thank you.
Development Environment :
- Node : v14.15.5
- Ruby : ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [arm64-darwin21]
- Rails : Rails 6.1.7.3
- NPM : 8.11.0