NuxtN
Nuxt2y ago
8l8

how can i add `zbar-wasm` to nuxt?

i try use https://www.npmjs.com/package/@undecaf/barcode-detector-polyfill but got this trouble in attachment image
here is my script test.vue component
<template>
  <div>
    <h1>heloo wol1</h1>
  </div>
  </template>
  <script setup>
  import { BarcodeDetectorPolyfill } from "https://cdn.jsdelivr.net/npm/@undecaf/barcode-detector-polyfill@latest/dist/main.js";
  onMounted(()=>{
  })
</script>
Screenshot_2024-07-16_at_17-29-34_500_-_Vite_Error_Nuxt.png
Was this page helpful?