Can't build docs when using the component plugin
See original GitHub issueIf I enabled the component plugin I’m getting the following when attempting to build the docs:
jsdoc -c jsdoc.confg.json
$ jsdoc -c jsdoc.conf.json
Generating entry file for "components" plugin
Bundling components
running: NODE_ENV=development parcel build docs/entry.js --out-dir docs/build
🚨 /home/god/Git/xxxxxxxx/docs/entry.js: Cannot resolve dependency '/home/god/Git/xxxxxxxx/node_modules/@babel/runtime/helpers/interopRequireDefault' at '/home/god/Git/xxxxxxxx/node_modules/@babel/runtime/helpers/interopRequireDefault'
at Resolver.resolve (/home/god/.config/yarn/global/node_modules/parcel-bundler/src/Resolver.js:71:17)
at async Bundler.resolveAsset (/home/god/.config/yarn/global/node_modules/parcel-bundler/src/Bundler.js:433:18)
at async Bundler.resolveDep (/home/god/.config/yarn/global/node_modules/parcel-bundler/src/Bundler.js:484:14)
at async /home/god/.config/yarn/global/node_modules/parcel-bundler/src/Bundler.js:608:26
at async Promise.all (index 2)
at async Bundler.loadAsset (/home/god/.config/yarn/global/node_modules/parcel-bundler/src/Bundler.js:599:21)
at async Bundler.processAsset (/home/god/.config/yarn/global/node_modules/parcel-bundler/src/Bundler.js:557:5)
at async PromiseQueue._runJob (/home/god/.config/yarn/global/node_modules/parcel-bundler/src/utils/PromiseQueue.js:48:7)```
My current config:
```json
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc", "closure"]
},
"source": {
"include": ["src"],
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": ["plugins/markdown", "node_modules/better-docs/component"],
"templates": {
"better-docs": {
"name": "My React components"
}
},
"opts": {
"destination": "docs",
"recurse": true,
"template": "node_modules/better-docs",
"readme": "README.md"
}
}
Things I’ve tried:
- Removing
node_modulesand re-installing withyarn install - Installing the latest
parcel-bundlerglobally.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Cannot build project with Gradle plugin from ... - Issue Tracker
1. Create a project with included build (https://docs.gradle.org/current/userguide/composite_builds.html). 2. Create a module with a custom Gradle plugin in ...
Read more >build-plugin-component - npm
Start using build-plugin-component in your project by running ... There are 13 other projects in the npm registry using build-plugin-component.
Read more >Developing Custom Gradle Plugins
A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you...
Read more >better-docs creates entry.js file incorrectly - Stack Overflow
I tried to use better-docs plugin for ...
Read more >cannot build Gerrit plugins using bazel - Google Groups
1. install bazel 2. try to build any Gerrit plugin 3. cannot build any Gerri plugin What is the expected output? Gerrit plugin...
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

parcel 2.0.0 uses
--dist-dirinstead of--out-dir@this pull request fixes it: https://github.com/SoftwareBrothers/better-docs/pull/157
just fix it removing and reinstalling parcel: