vue-highlight.js icon indicating copy to clipboard operation
vue-highlight.js copied to clipboard

Module highlight.js has no exported member HLJSStatic & IModeBase

Open gopalakrishnanr-paypaycorp opened this issue 4 years ago • 3 comments

my package.json looks like below,

dependencies:
    "highlight.js": "^10.4.0",
    "vue-highlight.js": "^3.1.0",

devDependencies:
    "@types/highlight.js": "^10.1.0",

FYI, Its already working fine but i have tried upgrade(Bump updates) im getting this issue.

error  in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts

ERROR in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts
1:10 Module '"highlight.js"' has no exported member 'HLJSStatic'.
  > 1 | import { HLJSStatic, IModeBase } from 'highlight.js';
      |          ^
    2 | /**
    3 |  * Highlight.js language
    4 |  */

 error  in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts

ERROR in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts
1:22 Module '"highlight.js"' has no exported member 'IModeBase'.
  > 1 | import { HLJSStatic, IModeBase } from 'highlight.js';
      |                      ^
    2 | /**
    3 |  * Highlight.js language
    4 |  */

 ERROR  Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [dev-env] Error 1

Current version hasn't supported Highlight.js version 10. I'll work on it when I'm free.

gluons avatar Nov 29 '20 13:11 gluons

will this be supported at some point?

solancer avatar Dec 10 '20 05:12 solancer

Version 4 was released.
You can try it via npm install vue-highlight.js@next.

gluons avatar Jan 31 '21 08:01 gluons