diff --git a/packages/wxt/src/core/utils/building/import-entrypoint.ts b/packages/wxt/src/core/utils/building/import-entrypoint.ts index 0426a7f5..c215bffa 100644 --- a/packages/wxt/src/core/utils/building/import-entrypoint.ts +++ b/packages/wxt/src/core/utils/building/import-entrypoint.ts @@ -90,7 +90,7 @@ export async function importEntrypointFile(path: string): Promise { // "XXX is not defined" - usually due to WXT removing imports const variableName = err.message.replace(' is not defined', ''); throw Error( - `${filePath}: Cannot use imported variable "${variableName}" outside the main function. See https://wxt.dev/guide/entrypoints.html#side-effects`, + `${filePath}: Cannot use imported variable "${variableName}" outside the main function. See https://wxt.dev/guide/go-further/entrypoint-side-effects.html`, { cause: err }, ); } else {