Skip to content

[Bug] cannot find namespace 'google' on version 1.6.1 #856

@devdumpling

Description

@devdumpling

Description

When updating from 1.5.5 to 1.6.1 I noticed my typecheck start failing anywhere I'm referencing google's namespace.

I see in the most recent version there was a change to tsLib, maybe related?

I also saw this old issue thread #519


For reference in case it's helpful:

Here are my tsconfigs (I extend a base one in a monorepo)

// base.json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Default",
  "compilerOptions": {
    "composite": false,
    "declaration": true,
    "declarationMap": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "allowImportingTsExtensions": true,
    "noEmit": true,
    "inlineSources": false,
    "isolatedModules": true,
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "preserveWatchOutput": true,
    "skipLibCheck": true,
    "strict": true,
    "strictNullChecks": true,
    "resolveJsonModule": true
  },
  "exclude": ["node_modules"]
}
// react-library.json

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "React Library",
  "extends": "./base.json",
  "compilerOptions": {
    "lib": ["ES2015", "DOM"],
    "module": "ESNext",
    "target": "ES6",
    "jsx": "react-jsx",
    "noEmit": true,
    "types": [
      "node",
      "@testing-library/dom",
      "@testing-library/jest-dom",
      "@testing-library/user-event",
      "@testing-library/react",
      "vitest/globals"
    ]
  }
}
// ui package config

{
  "extends": "@company/config.typescript/react-library.json",
  "include": [
    ".",
    "../../analytics/src/providers/AnalyticsProvider/PageProvider"
  ],
  "compilerOptions": {
    "lib": ["dom", "dom.iterable"]
  },
  "exclude": ["dist", "build", "node_modules"]
}

Steps to Reproduce

Will get one up when I have a minute here

Environment

  • Library version: 1.6.1
  • Google maps version: weekly
  • Browser and Version: Chrome 141.0.7390.108 ARM
  • OS: Mac OS Sequoia 15.5

Logs


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions