You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated my package.json to use the #main address for qwik-types (hoping it had been updated with support for searchParams) and now it throws this error.
/node_modules/@builder.io/qwik-labs/vite/index.js:79
throw new Error(
^
Error: ReferenceError: require is not defined
========================================================================
/**
* This file is created as part of the typed routes, but it is intended to be modified by the developer.
*
* @fileoverview
*/
import { untypedAppUrl, omitProps } from '@builder.io/qwik-labs';
import { type AppLinkProps, type AppRouteParamsFunction } from './routes.gen';
import { type QwikIntrinsicElements } from '@builder.io/qwik';
/**
* Configure `appUrl` with the typed information of routes.
*/
export const appUrl = untypedAppUrl as AppRouteParamsFunction;
/**
* Configure `<AppLink/>` component with the typed information of routes.
*
* NOTE: you may consider changing `<a>` to `<Link>` to be globally applied across your application.
*/
export function AppLink(props: AppLinkProps & QwikIntrinsicElements['a']) {
return (
<a
href={(appUrl as (route: string, props: any, prefix: string) => string)(
props.route,
props,
'param:'
)}
{...omitProps(props, ['href'])}
>
{props.children}
</a>
);
}
I updated my
package.json
to use the#main
address forqwik-types
(hoping it had been updated with support for searchParams) and now it throws this error.I can do back to this:
...and things work as before.
The text was updated successfully, but these errors were encountered: