highlightjs / highlightjs/highlightjs-vue
(0 , _highlightjsVue.default) is not a function
- Dominant language
- JavaScript
- Stars
- 15
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
I think last lines should probably be changed to something like,
```javascript
var hljsRegisterVue = function(hljs) {
hljs.registerLanguage("vue", hljsDefineVue);
};
module.exports = hljsRegisterVue;
module.exports.hljsRegisterVue = hljsRegisterVue;
module.exports.hljsDefineVue = hljsDefineVue;
/**
* @deprecated
*/
module.exports.definer = hljsDefineVue;
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the module's final export code and reproduce the reported “_highlightjsVue.default is not a function” error. Compare the current exports with the proposed CommonJS exports in the issue; done means the module can be imported and used without that error while preserving the deprecated definer export.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100