scholtz / qrcode-vue3

MIT License
87 stars 33 forks source link

TypeError: (0 , t2.openBlock) is not a function #16

Open myomyintaung1411 opened 2 years ago

zreren commented 2 years ago

i also meet this problem in my project with vue3 and typescript

DanBrima commented 2 years ago
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [vue()],
  resolve: { dedupe: ["vue"] },
});

make sure this is your vite config file

Mata-wqq commented 2 years ago

Are there any other idea/solution for this issue ? I'm not using vite at all.

321dev commented 1 year ago
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [vue()],
  resolve: { dedupe: ["vue"] },
});

make sure this is your vite config file

Could you explain what the underlying problem is, and how your change resolves it?

TIA

scholtz commented 1 year ago

there is typescript demo that does not show this error .. does it still apply after latest update? https://github.com/scholtz/qrcode-vue3-sample/blob/864df396c9099c1d0f164f09ba984faf3f8c3fa5/src/App.vue#L12