-
Notifications
You must be signed in to change notification settings - Fork 652
Open
Labels
triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
While building my Next JS project using "npm run build" I get this error.
Type error: Type '"origin" | undefined' is not assignable to type '"origin"'.
Type 'undefined' is not assignable to type '"origin"'.
./node_modules/@googlemaps/js-api-loader/src/index.ts:301:5
299 | }: LoaderOptions) {
300 | this.apiKey = apiKey;
> 301 | this.authReferrerPolicy = authReferrerPolicy;
| ^
302 | this.channel = channel;
303 | this.client = client;
304 | this.id = id || DEFAULT_ID; // Do not allow empty string
This is really annoying as i am unable to deploy the app to Vercel because of this.
Steps to reproduce:
- Create a Next JS app
- Install the latest version of this package
- Build
package version 3.4.0
Next JS version 14.2.3
Typescript version ^5
us24man, palfaro91 and bbolek
Metadata
Metadata
Assignees
Labels
triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.