I’am tryng to install highlightjs in my angular project. I followed these instructions :
but when i try to add this in my app.config.ts
providers: [
provideHighlightOptions({
fullLibraryLoader: () => import('highlight.js')
})
]
I get an error: Cannot find module ‘highlight.js’ or its corresponding type declarations.ts
enter image description here
I’m trying to solve the problem to fully install highlightjs.
New contributor
Nesrine GHRIBI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.