question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't Support es5 Compiler Options - Column must be greater than or equal to 0, got -21

See original GitHub issue

Describe the bug I changed my compilerOptions to es5 to support IE11 browser and when I run ng serve following error occurs TypeError: node_modules@casl\angular_ivy_ngcc_\dist\es6\index.js: Column must be greater than or equal to 0, got -21

image

image

To Reproduce Steps to reproduce the behavior: Angular Version: 9.1.2 “@angular/animations”: “~9.1.2”, “@angular/cdk”: “^9.2.1”, “@angular/common”: “~9.1.2”, “@angular/compiler”: “~9.1.2”, “@angular/core”: “~9.1.2”,

Expected behavior Build without error and also should support IE11 browser.

CASL Version

@casl/ability - 4.1.5 @casl/angular - 4.1.4

Environment:

Node Version: 12.16.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
johnvinoshcommented, Sep 3, 2020

Thanks for the quick fix. Working good now.

0reactions
stalniycommented, Sep 3, 2020

I used this app to reproduce the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is target in tsconfig.json for? - typescript - Stack Overflow
I am quite new to Typescript. What does Target in tsconfig.json signify? target signifies which target of JavaScript should be emitted from ...
Read more >
API - esbuild
This setting is a convention from Webpack that esbuild respects for any imported file, not just files used with inject. #Loader. Supported by:...
Read more >
TSConfig Option: target - TypeScript
The target setting changes which JS features are downleveled and which are left intact. For example, an arrow function () => this will...
Read more >
Cytoscape.js
Cytoscape.js supports environments with ES5 or newer, as it is transpiled by Babel and it uses only basic features of the standard library....
Read more >
SyntaxError: missing ; before statement - JavaScript | MDN
However, oftentimes, this error is only a consequence of another error, like not escaping strings properly, or using var wrongly. You might also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found