question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build docs when using the component plugin

See original GitHub issue

If 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_modules and re-installing with yarn install
  • Installing the latest parcel-bundler globally.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
pdgagocommented, May 27, 2021

parcel 2.0.0 uses --dist-dir instead of --out-dir @

this pull request fixes it: https://github.com/SoftwareBrothers/better-docs/pull/157

0reactions
PabloPeniacommented, Sep 29, 2022

just fix it removing and reinstalling parcel:

yarn global remove parcel parcel-bundler
yarn global add parcel
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found