Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type for Intl.Segmenter #577

Open
BirgitPohl opened this issue Jan 8, 2025 · 0 comments
Open

Type for Intl.Segmenter #577

BirgitPohl opened this issue Jan 8, 2025 · 0 comments

Comments

@BirgitPohl
Copy link

I'm installing yeoman

diff type

{
  "name": "generator-person",
  "version": "1.0.0",
  "description": ghjj",
  "license": "ISC",
  "author": "me",
  "type": "commonjs",
  "keywords": [
    "yeoman-generator"
  ],
  "files": [
    "generators"
  ],
  "main": "generators/index.js",
  "scripts": {
    "test": "test",
    "build": "npm run clean && tsc",
    "link": "npm link",
    "clean": "rm -rf generators"
  },
  "dependencies": {
    "ts-node": "^10.9.2",
    "typescript": "^5.7.2",
    "yeoman-generator": "^5.10.0"
  },
  "devDependencies": {
    "@types/yeoman-generator": "^5.2.14"
  }
}

When I

npm i
npm run build

I get an error, that

node_modules/@types/diff/index.d.ts:43:26 - error TS2694: Namespace 'Intl' has no exported member 'Segmenter'.

43     intlSegmenter?: Intl.Segmenter | undefined;

I wanted to report that here and not in definitely typed, because since you have added the support for this in 2024, you might want to check, if Intl has updated something that requires refactoring.

Currently, it blocks me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant