Can't activate plugin
See original GitHub issueWhen adding the plugin to my prettier plugins, I get:
["ERROR" - 02:35:57] Cannot find module 'prettier-plugin-jsdoc'
I tried installing it as normal dependency and as dev dependency. Both don’t work. I am using VSCode with the prettier extension but with a local installation of prettier in my workspace. Whole log: https://pastebin.com/HfhiRanC
Prettier: 2.3.2 Plugin: 0.3.23 Prettier Extension: 8.1.0 VSCode: 1.59.0
.prettierrc:
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 120,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "none",
"useTabs": false,
"plugins": ["prettier-plugin-jsdoc"],
"overrides": [
{
"files": "*.{json,yml,yaml,prettierrc,eslintrc}",
"options": {
"tabWidth": 2
}
}
]
}
package.json dependencies:
"dependencies": {
"@iarna/toml": "^2.2.5",
"@rmp135/imgur": "^0.5.0",
"promptly": "^3.2.0",
"signale-logger": "^1.5.1",
"tmi.js": "^1.8.4"
},
"devDependencies": {
"@types/node": "^16.6.0",
"@types/promptly": "^3.0.2",
"@types/tmi.js": "^1.7.2",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.0",
"eslint-plugin-jsdoc": "^36.0.7",
"eslint-plugin-regexp": "^0.13.2",
"husky": "^7.0.1",
"prettier": "^2.3.2",
"prettier-plugin-jsdoc": "^0.3.23",
"prettier-plugin-organize-imports": "^2.3.3",
"prettier-plugin-packagejson": "^2.2.11",
"pretty-quick": "^3.1.1",
"typescript": "^4.3.5"
}
I remember using this plugin in another project a while ago and it worked. Was it always the case that you have to add it to your prettierrc plugins? I have two other plugins which work without adding them.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top Results From Across the Web
WordPress Problem: Can Not Activate a Plugin
1. Attempt to reactivate using functions.php · 2. Add your plugin to the WordPress “Must Use” folder. · 3. Activate your plugin via...
Read more >Cannot Activate Plugin - WordPress.org
Hello,. I install starter sites and whenever I click “Activate” it starts an endless loading that turns into an error.
Read more >My plugins won't activate. WordPress - WPQuestions
Just wondering if anyone has heard of this problem. All of a sudden out of nowhere, all of my plugins deactivated all at...
Read more >Cannot activate plugin | Help Desk | E2Pdf - Export to PDF tool ...
Now I am able to install it again, but I cannot activate it. When I try to activate it, I get the following...
Read more >Activation Manual - Plugin Alliance
Log in to your Plugin Alliance account and go to Manage Devices. In the Activated Devices section, find the name of the device...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

“plugins”: [ “./node_modules/prettier-plugin-packagejson”, “./node_modules/prettier-plugin-organize-imports”, “./node_modules/prettier-plugin-jsdoc” ],
This was the syntax that worked for me. Probably should put this in the readme.