Skip to content

Instantly share code, notes, and snippets.

@TianyiShi2001
Created October 24, 2020 12:16
Show Gist options
  • Save TianyiShi2001/8f9c09208f13026af690fb93ea4a17e8 to your computer and use it in GitHub Desktop.
Save TianyiShi2001/8f9c09208f13026af690fb93ea4a17e8 to your computer and use it in GitHub Desktop.
quasar-electron failure
quasar create foo # with default options + npm
cd foo
quasar mode add electron
npm i node-id3
echo "import * as NodeID3 from 'node-id3'
export function logId3 (buffer) {
console.log(NodeID3.read(buffer))
}" > src/utils.js
echo "<template>
<q-page class='flex flex-center'>
<img
alt='Quasar logo'
src='~assets/quasar-logo-full.svg'
>
</q-page>
</template>
<script>
import { logId3 } from '../utils'
export default {
name: 'PageIndex',
mounted () {
logId3([0, 0, 0, 0])
}
}
</script>" > src/pages/Index.vue
quasar dev # this works
quasar dev -m electron # doesn't work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment