gluons / vue-highlight.js

📜 Highlight.js syntax highlighter component for Vue.
https://git.io/vue-highlight.js
MIT License
208 stars 24 forks source link

Module highlight.js has no exported member HLJSStatic & IModeBase #66

Open gopalakrishnanr-paypaycorp opened 3 years ago

gopalakrishnanr-paypaycorp commented 3 years ago

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
gluons commented 3 years ago

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

solancer commented 3 years ago

will this be supported at some point?

gluons commented 3 years ago

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