Skip to content

Error detectIncognito cannot determine the browser #46

Open
@gvillo

Description

@gvillo

Hi! I am running latest version (1.3.7) and I am getting this error in Sentry (242 Events and 76 Users affected). I have a SPA Vite (no SSR). Pretty simple, I have the vite-plugin-pwa using a simple sw too.

image

I couldn't reproduce it locally, but I think it's only on the production bundle, if it's kinda related to #44, I just post my build config from vite.config file

build: {
			outDir: 'build',
			sourcemap: true,
			minify: true,
			cssMinify: true,
			rollupOptions: {
				output: {
					manualChunks: (id) => {
						if (id.indexOf('node_modules') !== -1) {
							const basic = id.toString().split('node_modules/')[1];
							const sub1 = basic.split('/')[0];
							if (sub1 !== '.pnpm') {
								return sub1.toString();
							}
							const name2 = basic.split('/')[1];
							return name2.split('@')[name2[0] === '@' ? 1 : 0].toString();
						}
					}
				}
			}
	}

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions