github-copilot-resources / copilot-metrics-viewer

Tool to visualize the Copilot metrics provided via the Copilot Business Metrics API (current in public beta)
https://copilot-metrics-viewer-gthcc5cmd9ebf2ff.westeurope-01.azurewebsites.net/
MIT License
279 stars 139 forks source link

Facing error while deploying setup. #106

Open jaswant-dnv opened 1 day ago

jaswant-dnv commented 1 day ago

Facing error while deploying setup r# npm run serve

copilot-metrics-viewer@1.6.0 serve vue-cli-service serve

ERROR Error loading vue.config.js: ERROR TypeError: defineConfig is not a function TypeError: defineConfig is not a function at Object. (/mnt/c/Users/JASWSI/Desktop/DnV/Work/Adam_ADO_Github-Handover/Github/CoPilot/APIMetrics/copilot-metrics-viewer/copilot-metrics-viewer/vue.config.js:2:18) at Module._compile (node:internal/modules/cjs/loader:1546:14) at Module._extensions..js (node:internal/modules/cjs/loader:1691:10) at Module.load (node:internal/modules/cjs/loader:1317:32) at Module._load (node:internal/modules/cjs/loader:1127:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) at Module.require (node:internal/modules/cjs/loader:1339:12) at require (node:internal/modules/helpers:135:16) at Service.loadUserOptions (/mnt/c/Users/JASWSI/Desktop/DnV/Work/Adam_ADO_Github-Handover/Github/CoPilot/APIMetrics/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/@vue/cli-service/lib/Service.js:316:22)

r# cat vue.config.js

const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true,

pluginOptions: { vuetify: { // https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader } } })

karpikpl commented 1 day ago

Hi @jaswant-dnv can you provide details for your environment? node, npm versions? windows/linux?

Are you running version 1.6?

I've tested 1.6 tag on Linux and Windows just now and worked on both platforms. It seems like you're using WSL but run windows file system from Linux, which is not recommended

jaswant-dnv commented 2 minutes ago

Yes we are using WSL Ubuntu 20.04.6 LTS (GNU/Linux 5.15.153.1-microsoft-standard-WSL2 x86_64) jas@PUNL200648:~$ uname -a Linux PUNL200648 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux jas@PUNL200648:~$ wslinfo --wsl-version 2.3.24 jas@PUNL200648:~$

I will test this again on ubuntu machine.