Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in installing and using vite-radar-plugins #5

Open
Nidhi132 opened this issue Sep 21, 2021 · 2 comments
Open

Issue in installing and using vite-radar-plugins #5

Nidhi132 opened this issue Sep 21, 2021 · 2 comments

Comments

@Nidhi132
Copy link

Nidhi132 commented Sep 21, 2021

How to install and use vite-plugin-radar (https://github.com/stafyniaksacha/vite-plugin-radar)

After including the plugin in vite.config.ts ,

ViteRadar({
      enableDev: true,
      analytics: {
        id: 'G-XXX',
      },
      gtm: {
        id: 'GTM-XXXX',
      },
    }),

I'm getting this error,

failed to load config from /home/nidhi/Documents/Web/RPWebAppV1.0.2/vite.config.ts
(node:4292) UnhandledPromiseRejectionWarning: TypeError: ViteRadar is not a function

@ankpaw
Copy link

ankpaw commented Aug 23, 2022

try using below import instead of ViteRadar
import { VitePluginRadar } from "vite-plugin-radar";

@spokospace
Copy link

Thx @ankpaw ! I had the same issue, but your solution works like a charm ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants