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.

[BUG] Not able to run compodoc on windows machine

See original GitHub issue
Overview of the issue

When trying to run compodoc on a windows machine it is throwing an error that says “Provided source folder Frontend was not found in the current directory”. Apart from the fact that we do not use any folder called “Frontend” we also never configured something like that. We simply installed compodoc and run it with the standard config file. The problem is only existing on windows. On my mac there is no problem at all. So what is wrong with configuration?

Operating System, Node.js, npm, compodoc version(s)

Operating System: Windows 10 Compodoc version: 1.1.6 Typescript version: 3.1.3 npm version 6.4.1 node version 10.10

Angular configuration, a package.json file in the root folder

{ “name”: “my-frontend”, “version”: “0.0.0”, “scripts”: { “ng”: “ng”, “start”: “ng serve”, “build”: “ng build”, “prod”: “ng build --base-href=/upload/”, “test”: “ng test”, “lint”: “ng lint”, “stylelint”: “stylelint ‘**/*.scss’”, “e2e”: “ng e2e”, “compodoc”: “./node_modules/.bin/compodoc -p src/tsconfig.app.json -w -s -o --hideGenerator --includes src/docs -d ./docs -n ‘Frontend - Documentation’ --theme ‘material’” }, “private”: true, “dependencies”: { “@angular/animations”: “^7.0.2”, “@angular/cdk”: “^7.0.2”, “@angular/common”: “^7.0.2”, “@angular/compiler”: “^7.0.2”, “@angular/core”: “^7.0.2”, “@angular/forms”: “^7.0.2”, “@angular/http”: “^7.0.2”, “@angular/material”: “^7.0.2”, “@angular/platform-browser”: “^7.0.2”, “@angular/platform-browser-dynamic”: “^7.0.2”, “@angular/router”: “^7.0.2”, “@fortawesome/angular-fontawesome”: “^0.3.0”, “@fortawesome/fontawesome-svg-core”: “^1.2.8”, “@fortawesome/free-solid-svg-icons”: “^5.5.0”, “core-js”: “^2.5.4”, “hammerjs”: “^2.0.8”, “normalize.css”: “^8.0.0”, “rxjs”: “^6.0.0”, “stylelint-scss”: “^3.3.1”, “zone.js”: “~0.8.26” }, “devDependencies”: { “@angular-devkit/build-angular”: “~0.10.0”, “@angular/cli”: “~7.0.4”, “@angular/compiler-cli”: “^7.0.2”, “@angular/language-service”: “^7.0.2”, “@compodoc/compodoc”: “^1.1.6”, “@types/jasmine”: “~2.8.6”, “@types/jasminewd2”: “~2.0.3”, “@types/node”: “~8.9.4”, “codelyzer”: “~4.2.1”, “jasmine-core”: “~2.99.1”, “jasmine-spec-reporter”: “~4.2.1”, “karma”: “~1.7.1”, “karma-chrome-launcher”: “~2.2.0”, “karma-coverage-istanbul-reporter”: “~2.0.0”, “karma-jasmine”: “~1.1.1”, “karma-jasmine-html-reporter”: “^0.2.2”, “protractor”: “~5.4.0”, “stylelint”: “^9.6.0”, “stylelint-config-standard”: “^18.2.0”, “ts-node”: “~5.0.1”, “tslint”: “~5.9.1”, “typescript”: “~3.1.6” } }

Compodoc installed globally or locally ?

locally

If possible sourcecode of the file where it breaks

not known

If possible your terminal logs before the error

compodoc -p src/tsconfig.app.json -w -s -o --hideGenerator --includes src/docs -d ./docs -n ‘Frontend - Documentation’ --theme ‘material’

1.1.6

Typescript version : 2.9.1

Node.js version : v10.10.0

Operating system : Windows 10

[14:08:10] No configuration file found, switching to CLI flags. [14:08:10] Provided source folder Frontend was not found in the current directory npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! my-frontend@0.0.0 compodoc: compodoc -p src/tsconfig.app.json -w -s -o --hideGenerator --includes src/docs -d ./docs -n 'Frontend - Documentation' --theme 'material' npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the my-frontend@0.0.0 compodoc script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Motivation for or Use Case

On my project team, we want to use compodoc as documentation tool for our Angular project. But apart from me, the whole team is using windows machines and not able to run compodoc. My Mac is the only machine where it is running. So if we do not find a fix, we need to reject compodoc.

Reproduce the error

npm run compodoc in project root folder using a windows machine

Related issues

Suggest a Fix

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
vogloblinskycommented, Nov 28, 2018

@awacode21 seems related to quotes with Windows in command line. Watch the section " https://compodoc.app/guides/usage.html " in this link : https://compodoc.app/guides/usage.html

0reactions
lock[bot]commented, Sep 30, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compodoc - The missing documentation tool for your Angular ...
Use it directly in your project using npm and one script, that's it ! Local tool. No server needed, no sources uploaded online....
Read more >
angular - compodoc: command not found - Stack Overflow
Just run "./node_modules/.bin/compodoc -s".
Read more >
@compodoc/compodoc | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
@compodoc/live-server - npm
0.0 ("any address"); --no-browser - suppress automatic web browser launching; --browser=BROWSER - specify browser to use instead of system ...
Read more >
compodoc/compodoc - Gitter
But I cannot seem to run tests, so I've not been able to check. The only data I'm unsure of is the "methods"...
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