Can't build locally project locally / Error: 'default' is not exported by highlightjs-line-numbers.js
When running npm run build
or npm start
I get the error message
[!] Error: 'default' is not exported by node_modules\highlightjs-line-numbers.js\src\highlightjs-line-numbers.js, imported by pages\assets\js\syntax-highlighting.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
pages\assets\js\syntax-highlighting.js (6:7)
4: import markdownLanguage from 'highlight.js/lib/languages/markdown.js'
5: import rubyLanguage from 'highlight.js/lib/languages/ruby.js'
6: import initHljsNumbers from 'highlightjs-line-numbers.js'
^
7:
8: export function init () {
I try to read the error message, but I'm not sure what it tries to tell me and how to fix it.
Some help would be appreciated.
Environment: Windows + node v16.14.2
Edited by Alexander Schwartz