Giter VIP home page Giter VIP logo

Comments (4)

arogozine avatar arogozine commented on June 21, 2024

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?

from linqtotypescript.

ebiton-eig avatar ebiton-eig commented on June 21, 2024

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.

from linqtotypescript.

arogozine avatar arogozine commented on June 21, 2024

Might be related to #29

I wonder if Server-Side Rendering is trying to transpile down the async for loops with a continue outerLoop label and failing

from linqtotypescript.

ebiton-eig avatar ebiton-eig commented on June 21, 2024

No fix for this problem?

from linqtotypescript.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.