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

Cannot read property 'printWidth' of undefined with Prettier 2.2.0 #214

Closed
EvgenyOrekhov opened this issue Nov 23, 2020 · 2 comments · Fixed by #215
Closed

Cannot read property 'printWidth' of undefined with Prettier 2.2.0 #214

EvgenyOrekhov opened this issue Nov 23, 2020 · 2 comments · Fixed by #215
Labels
bug Something isn't working released

Comments

@EvgenyOrekhov
Copy link
Contributor

This error appeared when I upgraded Prettier to 2.2.0:

❯ eslint .

Oops! Something went wrong! :(

ESLint: 7.14.0

TypeError: Error while loading rule 'decorator-position/decorator-position': Cannot read property 'printWidth' of undefined
Occurred while linting C:\eslint-config-hardcore\sort-class-members-test.js
    at lineLength (C:\eslint-config-hardcore\node_modules\eslint-plugin-decorator-position\lib\rules\decorator-position.js:337:59)       
    at Object.decoratorPositionRule [as create] (C:\eslint-config-hardcore\node_modules\eslint-plugin-decorator-position\lib\rules\decorator-position.js:142:26)
@NullVoxPopuli
Copy link
Owner

smoke-test issue-reproductions/#196 is currently reproducing this 👍

I'm starting to think I just have the tests run on a cron

NullVoxPopuli added a commit that referenced this issue Nov 23, 2020
fix(#214): update private prettier path for reading default options
github-actions bot pushed a commit that referenced this issue Nov 23, 2020
## [2.2.13](v2.2.12...v2.2.13) (2020-11-23)

### Bug Fixes

* **#214:** update private prettier path ([a141e7a](a141e7a)), closes [#214](#214)
* **internal:** ci was missing two smoke tests ([27080ce](27080ce))
@NullVoxPopuli
Copy link
Owner

🎉 This issue has been resolved in version 2.2.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
2 participants