-
Notifications
You must be signed in to change notification settings - Fork 19
Node.js 20 LTS compatibility #28
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
Comments
So, I've updated the tests to use Node 20.10.0 and they all ran without an issue. How are you getting this error? |
After more testing, the problem is with SSR enabled. It's easy to reproduce: Create a new project Angular 17 with SSR enabled. In the app.component.ts: import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { from } from 'linq-to-typescript';
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule, RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
export class AppComponent {
title = 'test';
test = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'];
constructor() {
const result = from(this.test).any(x => x === `'a');`
console.log(result);
}
} And the error when you build: ng build
An unhandled exception occurred: Illegal continue statement: 't' does not denote an iteration statement
See "C:\Users\xxxx\AppData\Local\Temp\ng-ao6Efq\angular-errors.log" for further details. [error] SyntaxError: Illegal continue statement: 't' does not denote an iteration statement
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:155:18)
at callTranslator (node:internal/modules/esm/loader:285:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:30)
No problem with an Angular 17 app without SSR enabled. |
Might be related to #29 I wonder if Server-Side Rendering is trying to transpile down the async for loops with a |
No fix for this problem? |
@ebiton-eig There is no such thing as |
LingToTypescript does not work with node.js 20 LTS.
Uncaught SyntaxError: Illegal continue statement: 'outerLoop' does not denote an iteration statement (at linq-to-typescript.js?v=09a07e09:3073:26)
The text was updated successfully, but these errors were encountered: