-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find a declaration file for module 'highlightjs-line-numbers.js' - Show line numbers #234
Comments
I think you modified something in your |
Hi, +1 It seems a types declaration file is missing ? adding highlightjs-line-numbers.d.ts in the src folder as suggested lets you at least compile. It's also happening on https://stackblitz.com/edit/ngx-highlightjs . |
In fact, the file "highlightjs-line-numbers.d.ts" is missing, I created this file in the "src" directory with the following content: |
Still running into this issue in the latest major version (8.0.0) Environment
|
hey, having the same issue:
|
I've included the script within ngx-highlightjs in v10 providers: [
{
provide: HIGHLIGHT_OPTIONS,
useValue: {
lineNumbersLoader: () => import('ngx-highlightjs/line-numbers')
}
}
] |
Expected Behavior
Show line numbers
Actual Behavior
Every time I try to import the library
highlightjs-line-numbers.js
to show the line numbers in the app module like this:it gives me the error:
Even if I've added and installed the following libraries in the
package.json
Shouldn't it be written in the docs how to install everything?
Environment
The text was updated successfully, but these errors were encountered: