Comments (15)
I found a solution at least for my case
I added
{
"scripts": {
"postinstall": "ngcc"
}
}
and the problem was gone
This is needed when you are using the new Ivy compiler
I hope this will help
from core.
Any update on this i am getting this error for ngcc ?
from core.
A workaround is to disable Ivy compiler in Angular 9.
put below in tsconfig.json
"angularCompilerOptions": {
"enableIvy": false,
}
from core.
Yeah, that works but the main reason to upgrade to Angular 9 would be to use Ivy compiler. So disabling it just for this component isn't a good idea. I have used ngx-highlightjs instead. It is not as cool as ngx-prism but does the job.
from core.
Same issue here, looks like lib is dead
from core.
Hi Hau,
I am also facing same issue. Looks like this package is no longer maintained by the authors. So either we need to find the alternate or try to upgrade it to support Angular 9 ourselves.
Will let you know if I find any luck. Please update me if you get around it too.
Thanks.
from core.
having same problem. I think its angular problem(ivy)
from core.
I'm also having the same issue, running on Angular 9 with Ivy enabled
from core.
Same here
from core.
{ "scripts": { "postinstall": "ngcc" } }
The internet wins. Thank you @nlitterat, this worked perfectly for me.
from core.
Not sure why but I get the following error while running ngcc:
Warning: Invalid constructor parameter decorator in G:/APPS/avalon/ama-code-editor-frontend/node_modules/@ngx-prism/core/dist/prism.service.js:
() => [
{ type: DomSanitizer, },
]
Error: Error on worker #2: Error: getInternalNameOfClass() called on a non-ES5 class: expected PrismService to have an inner class declaration
🤷 Tried removing node_modules
and doing a clean install but still, once ngcc
runs that error comes up.
from core.
Erro será resolvido consultando o seguinte link conforme a versão do Angular: https://github.com/ngx-translate/core
from core.
"postinstall": "ngcc" fix problem but not work in IE: Invalid character in function getColors.
Any ideas?
from core.
"postinstall": "ngcc"
where do you type that?
from core.
"postinstall": "ngcc"
where do you type that?
Package.json -> scripts
from core.
Related Issues (9)
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 core.