azuwis / zigbee2mqtt-networkmap

Home Assistant Custom Card to show Zigbee2mqtt network map
251 stars 18 forks source link

Question building release #51

Closed sdotter closed 9 months ago

sdotter commented 9 months ago

Hi!

Awesome project!

Just wondering how to output a release... If i do yarn build etc i get three files instead of one combined with all... Hope you can help me out

Thanks! 👍👌

azuwis commented 9 months ago

zigbee2mqtt-networkmap.js is the release file, the other two are for the demo.

sdotter commented 9 months ago

Ohh ok thanks! i thought that too but my build output file gives an error like:

image image

But it is working with your release v0.8.0 zigbee2mqtt-networkmap.js...

I did:

git clone this repo

yarn install yarn build

image

`$ yarn -v 1.22.21

$ node -v v19.9.0

$ npm -v 9.6.3`

Is it my vue.config.js that needs some extra config?

sdotter commented 9 months ago

It is breaking on this part:

Vue.component('v-style', { render: function (createElement) { return createElement('style', this.$slots.default) } })

sdotter commented 9 months ago

Found the issue... vue v3+ not really web compononets compatible or something?

I needed to downgrade vue in package.json "vue": "^2.7.14"

Then when i build it works.

Still curious how your master/main branch can work...

Besides that awesome project from you! Thanks for sharing on github 👍👌

azuwis commented 9 months ago

Actually the master branch was not fully tested, it was a quick update for Nix packaging.

Thank for the investigation, fixed in 7851357d78ebc0d1cc3cb5c661267a1e8b4c09e3.