Error: r is not a constructor
CNMathon opened this issue ยท 1 comments
Hi, I tried to use this template. But when I lint with prettier-eslint, it always throws an error like the one below.
- Environment Info
- Development Environment
- VSCode
๐ v1.63.2- ESLint
๐ v2.2.2 - Prettier ESLint
๐ v3.1.0
- ESLint
- VSCode
- package
- @typescript-eslint/eslint-plugin
๐ v5.8.1 - @typescript-eslint/parser
๐ v5.8.1 - eslint
๐ v7.14.0 - prettier
๐ v2.3.2 - prettier-eslint
๐ v12.0.0 - typescript
๐ v4.5.4
- @typescript-eslint/eslint-plugin
- Development Environment
Hi @CNMathon, this doesn't seem to be an issue with this template but with the extension you're using - their README specifies that it supports prettier v1 and eslint v6, so it's rather outdated. It looks like there is a beta version you could try, but even that only says it supports eslint v7, not v8.
I would personally suggest uninstalling that extension and using the usual prettier and eslint vscode extensions. They work fine for me and do not need additional configuration since the included eslint config disables all formatting rules and lets prettier handle the formatting.
This template also has auto fix on save pre-configured for both, and recommends them on first open (look in the extensions tab if you dismissed it).
Hope that helps! Closing since this isn't an issue with the template.
