Skip to content
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

ERROR: unknown Statement of type "ForOfStatement" #12711

Closed
shymkovayu opened this issue Oct 21, 2022 · 3 comments
Closed

ERROR: unknown Statement of type "ForOfStatement" #12711

shymkovayu opened this issue Oct 21, 2022 · 3 comments
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.

Comments

@shymkovayu
Copy link

πŸ“ Provide detailed reproduction steps (if any)

  1. Build CKEditor from source in a separate repo
  2. Release as an NPM package
  3. Add to another project as dependency

βœ”οΈ Expected result

Project builds.

❌ Actual result

Error: dist/ckeditor.js: unknown Statement of type "ForOfStatement"

❓ Possible solution

?

πŸ“ƒ Other details

  • CKEditor: 35.2.1
  • @babel/core: 7.19.3
  • @babel/generator: 7.19.5
  • Node: 16.13.0

Hello! I'm trying to build CKEditor from source and use it my main project. It builds separately just fine, but the main project build fails when I'm using it. Could you please help me understand which way should I look?

@shymkovayu shymkovayu added the type:bug This issue reports a buggy (incorrect) behavior. label Oct 21, 2022
@mabryl
Copy link
Contributor

mabryl commented Oct 25, 2022

Hi shymkovayu,

Thank you for bringing this issue to our attention. I tried recreating it on my end but, unfortunately, I wasn't able to do it.

Could you provide us with more information regarding this issue? Particularly, could you share your editor and babel configs?

I did some googling regarding the error that you're getting and to me it seems like it might be an issue related to your babel configuration. Maybe you'll find these GitHub threads useful in your debugging:

facebook/regenerator#229

parcel-bundler/parcel#1269

Please let me know whether you found this response useful.

@shymkovayu
Copy link
Author

@mabryl Thank you for the reply! Adding IE 11 to the .browserlistrc helped to resolve this issue.

@Reinmar Reinmar added the resolution:resolved This issue was already resolved (e.g. by another ticket). label Nov 1, 2022
@fuze210699
Copy link

Thanks to @mabryl and @shymkovayu for adding IE 11 to the .browserlistrc. This actually resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

4 participants