-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
10.17.0
Framework Version
Sveltekit 5.39.8
Link to Sentry event
No response
Reproduction Example/SDK Setup
pnpx sv create a project
Set it up as described in the sentry docs.
Steps to Reproduce
Try to make a file sentry-feedback.ts and use showFeedback
import { getFeedback } from '@sentry/sveltekit';
// Export function to show feedback manually
export function showFeedback() {
const feedback = getFeedback?.();
if (feedback) {
feedback.createForm().then((form) => {
form.appendToDom();
form.open();
});
}
}
Expected Result
Not to give a error blocking builds
Actual Result
[vite] The requested module '@sentry/sveltekit' does not provide an export named 'getFeedback'
Additional Context
Importing this way does work, but I only want to import what i need instead of everything...
import * as Sentry from '@sentry/sveltekit';
// Export function to show feedback manually
export function showFeedback() {
const feedback = Sentry.getFeedback?.();
if (feedback) {
feedback.createForm().then((form) => {
form.appendToDom();
form.open();
});
}
}
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Community