Comments (4)
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.
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.
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.
No fix for this problem?
from linqtotypescript.
Related Issues (17)
- Potential security vulnerability found in the hoek dependency HOT 1
- one shot queries HOT 5
- how to use select with chained groupby HOT 2
- max() on empty sequence from array throws HOT 3
- functions GroupJoin, DefaultIfEmpty are not available HOT 3
- orderBy<number> with default comparer uses string-based sort order HOT 1
- The library is great but does not work with React. Please Fix !!! HOT 3
- Running into issues with React HOT 5
- Unsupported engine for Node v16? HOT 3
- IEnumerable Min returns wrong result HOT 3
- Performance comparison/measurements HOT 2
- Support for LINQ to SQL HOT 1
- Question about the need for ECMAScript 2022 HOT 1
- esbuild outerLoop' error HOT 6
- Support typescript 3.7 HOT 2
- LINQ .concat conflicts with native Typescript / Javascript .concat method HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linqtotypescript.