Using with Vue 3.0
See original GitHub issueIs there a way to use this package with Vue 3?
import { createApp } from "vue";
import App from "./App.vue";
import "bootstrap/dist/css/bootstrap.min.css";
import router from "./router";
import VueHighlightJS from "vue-highlight.js";
import json from "highlight.js/lib/languages/json";
import "highlight.js/styles/default.css";
createApp(App)
.use(router)
.use(VueHighlightJS, { languages: json })
.mount("#app");
Results in
Uncaught TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)
at extendStatics (tslib.es6.js?9ab4:21)
at __extends (tslib.es6.js?9ab4:25)
at eval (vue-highlight.es.js?c964:350)
at eval (vue-highlight.es.js?c964:413)
at Module../node_modules/vue-highlight.js/dist/vue-highlight.es.js (chunk-vendors.js:1396)
at __webpack_require__ (app.js:854)
at fn (app.js:151)
at eval (main.js:15)
at Module../src/main.js (app.js:1122)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
Vue 3: Start Using it Today
There are two ways to start using Vue 3. In this article, we'll show you how so you can take advantage of this...
Read more >Introduction - Vue.js
Vue (pronounced /vjuː/, like view) is a JavaScript framework for building user interfaces. It builds on top of standard HTML, CSS ...
Read more >Creating Your First Vue 3 Project - A Vue Tutorial - LearnVue
The biggest change in Vue 3 is the introduction of the Composition API. In this new structure, we are able to organize our...
Read more >A definitive guide to Vue 3 components - LogRocket Blog
What are components in Vue 3? ... Components are reusable pieces of UI code that build functional web applications. They can either be...
Read more >What's new in Vue 3 — a roundup. Vue 3 - Medium
Why Vue 3? · Blazing fast, Vite-powered build toolchain · More ergonomic Composition API syntax via <script setup> · Improved TypeScript IDE support...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Any progress?
I’m interested in this, but I don’t get TypeError. I’m getting warnings like: