We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rollbar
I followed the documentation to integrate Rollbar into my web application.
After adding the Rollbar plugin to my Vue application, I am always given the following error (note that I am using ESNext):
Loading failed for the module with source “http://localhost:5173/node_modules/.vite/deps/rollbar.js?v=1d483b56”.
rollbar.ts
import { App } from "vue"; import Rollbar from "rollbar"; const rollbar = new Rollbar({ accessToken: 'myToken', captureUncaught: true, captureUnhandledRejections: true }); export const RollbarPlugin = { install(app: App) { app.config.errorHandler = (error: any, instance, info) => { console.log("error"); rollbar.error(error, { vueComponent: instance, info }); }; app.provide('rollbar', rollbar); }, };
main.ts
import { RollbarPlugin } from "@/rollbar"; const app = createApp(App); app.use(RollbarPlugin);
The text was updated successfully, but these errors were encountered:
SDK-408 Unable to import `rollbar` module in TypeScript web application (Vue 3)
Sorry, something went wrong.
No branches or pull requests
I followed the documentation to integrate Rollbar into my web application.
After adding the Rollbar plugin to my Vue application, I am always given the following error (note that I am using ESNext):
Steps taken
rollbar.ts
) I have followed the TypeScript steps to import Rollbar and create the Rollbar instance:main.ts
) I have correctly added the RollbarPlugin to my application:The text was updated successfully, but these errors were encountered: