Skip to content
New issue

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

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

Already on GitHub? # to your account

Cannot find name 'ErrorOptions' with version 2 #897

Closed
lpellegr opened this issue Nov 2, 2024 · 2 comments · Fixed by #900
Closed

Cannot find name 'ErrorOptions' with version 2 #897

lpellegr opened this issue Nov 2, 2024 · 2 comments · Fixed by #900

Comments

@lpellegr
Copy link

lpellegr commented Nov 2, 2024

Upgrading from version 1 to version 2 in a Typescript project, upon compilation I get the following error:

[tsc] node_modules/@vaadin/router/dist/resolver/resolver.d.ts(11,49): error TS2304: Cannot find name 'ErrorOptions'.

here is my tsconfig.json:

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": false,
    "experimentalDecorators": true,
    "importHelpers": true,
    "inlineSources": true,
    "lib": ["es2021", "dom", "dom.iterable"],
    "module": "es2020",
    "moduleResolution": "node",
    "noEmitOnError": true,
    "outDir": "out",
    "sourceMap": true,
    "target": "es2021",
    "strict": false,
    "useDefineForClassFields": false
  },
  "include": [
    "src/**/*.ts"
  ]
}

Typescript version 5.6.3.

@lpellegr
Copy link
Author

lpellegr commented Nov 2, 2024

ErrorOptions requires es2022, is it expected?

@platosha
Copy link
Contributor

platosha commented Nov 7, 2024

Thanks for pointing out. The fix will be released in v2.0.1 soon.

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

Successfully merging a pull request may close this issue.

2 participants