Get rid of continue statement that was throwing error by Babel on Angular #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, after migration from
@codemirror/nextto@codemirror/lintI'm getting error during angular compilation:After some changes I've started getting error:
SyntaxError: C:\workspaces\cluster\ui\angular\angular.server\node_modules\@codemirror\lint\dist\index.js: Unsyntactic continue (209:21)When I get rid of this continue and changed implementation to proposed in the PR the Angular app is compiling.
I did some unit tests for this change but the function is not
exportedso I didn't commit them.I think that's a bug in the Angular Babel-loader, because there really isn't anything wrong with those loops, and plain Babel seems to handle them fine. I recommend reporting the bug in the Angular project—I'm not really prepared to randomly adjust code in order to work around problems in other software.
Oh, hold on, if I check
es2015babel itself crashes, so that points to a Babel bug.I've filed Babel bug #12610.
@marijnh maybe this can be merged and reverted when new version of babel will be released? We cannot use codemirror right now because of this bug. It fails during app compilation.
Pull request closed