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

Babel error on compilation Angular #973

Closed
subratbhola opened this issue Nov 7, 2022 · 1 comment
Closed

Babel error on compilation Angular #973

subratbhola opened this issue Nov 7, 2022 · 1 comment

Comments

@subratbhola
Copy link

Getting the same error with below mentioned configuration:

  1. Angular 11
  2. pdfMake: 0.1.71 and 0.2.4
  3. node 10.21.0
  4. "@angular-devkit/build-angular": "~0.1102.13",

"@babel/core": "7.12.10",
"@babel/generator": "7.12.11",
"@babel/plugin-transform-async-to-generator": "7.12.1",
"@babel/plugin-transform-runtime": "7.12.10",
"@babel/preset-env": "7.12.11",
"@babel/runtime": "7.12.5",
"@babel/template": "7.12.7",

Error: Module parse failed: Unexpected token (43456:116)
File was processed with these loaders:

  • ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
  • ./node_modules/@ngtools/webpack/src/ivy/index.js
    You may need an additional loader to handle the result of these loaders.
    | * not null.
    | */
      function gen_bitlen(s, desc) /*    deflate_state *s;*/ /*    tree_desc *desc;    /* the tree descriptor */*/{

| var tree = desc.dyn_tree;
| var max_code = desc.max_code;
Error: Module parse failed: Unexpected token (71044:112)
File was processed with these loaders:

  • ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
  • ./node_modules/@ngtools/webpack/src/ivy/index.js
    You may need an additional loader to handle the result of these loaders.
    | */
    |
  function gen_bitlen(s, desc) /*    deflate_state *s;*/ /*    tree_desc *desc;    /* the tree descriptor */*/{

| var tree = desc.dyn_tree;
| var max_code = desc.max_code;

Team pdfMake , requesting you to share the feedback ASAP.

@JLHwung
Copy link
Contributor

JLHwung commented Nov 7, 2022

Duplicate of babel/babel#15132, this issue has been fixed in @babel/generator 7.20.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants