[BUG] Watch command: ReferenceError: Dependencies is not defined
See original GitHub issueOverview of the issue
After starting the watch with compodoc -p tsconfig.json -s --watch
, once any file is changed, the script runs into error:
[12:04:41] Watching sources in src folder
[12:05:01] File src/app/app.module.ts has been changed
[12:05:02] Get diff dependencies data
[12:05:02] ReferenceError: Dependencies is not defined
[12:05:02] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/issues/new)
This happens whether --disableGraph
flag is set or not. I had it on because the dependency graphs are reporting memory error when generating. (Project is fairly big)
Operating System, Node.js, npm, compodoc version(s)
macOS High Sierra 10.13.6, node v8.2.1, npm v6.4.0, compodoc v1.1.5
Angular configuration, a package.json
file in the root folder
{
"name": "xxxxxxxx",
"version": "0.37.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --open --hmr --e=hmr --base-href / --deploy-url / --host=0.0.0.0",
"cold": "ng serve --open --base-href / --deploy-url / --host=0.0.0.0",
"ssl": "ng serve --open --base-href / --deploy-url / --host=0.0.0.0 -ssl 1 --ssl-key certificate/key.pem --ssl-cert certificate/cert.pem",
"build": "ng build --prod --base-href / --deploy-url /",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"compodoc": "./node_modules/.bin/compodoc -p tsconfig.json -s --watch --disableGraph"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.11",
"@angular/common": "^5.2.11",
"@angular/compiler": "^5.2.11",
"@angular/core": "^5.2.11",
"@angular/forms": "^5.2.11",
"@angular/http": "^5.2.11",
"@angular/platform-browser": "^5.2.11",
"@angular/platform-browser-dynamic": "^5.2.11",
"@angular/router": "^5.2.11",
"@angularclass/hmr": "^2.1.3",
"@auth0/angular-jwt": "^1.2.0",
"@swimlane/ngx-datatable": "^11.3.2",
"@types/greensock": "^1.15.32",
"angular-in-memory-web-api": "^0.5.4",
"bezier-easing": "^2.1.0",
"blueimp-canvas-to-blob": "^3.14.0",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.7",
"detect-browser": "^2.5.1",
"exif-js": "^2.3.0",
"gsap": "^1.20.6",
"lodash": "^4.17.10",
"modularscale-sass": "^3.0.5",
"moment": "^2.22.2",
"moment-timezone": "^0.5.21",
"ngx-pipes": "^2.3.2",
"node-js-marker-clusterer": "^1.0.0",
"npm": "^5.10.0",
"raven-js": "^3.26.3",
"rxjs": "^5.5.11",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "^5.2.11",
"@angular/language-service": "^5.2.11",
"@types/googlemaps": "^3.30.11",
"@types/jasmine": "^2.8.8",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^6.0.114",
"codelyzer": "^4.4.2",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.4",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"ng-inline-svg": "^5.1.4",
"node-sass": "^4.9.2",
"postcss": "^6.0.23",
"postcss-css-variables": "^0.8.1",
"postcss-cssnext": "^3.1.0",
"postcss-loader": "^2.1.6",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3",
"web-animations-js": "^2.3.1"
}
}
Compodoc installed globally or locally ?
Globally
If possible sourcecode of the file where it breaks
/**
* [NgModule description]
* # App Module
* The central module that connects all modules, components, directives, pipes and plugins.
*
*/
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
If possible your terminal logs before the error
[12:04:37] Process page : modules
[12:04:37] Process page : overview
[12:04:37] Process page : variables
[12:04:41] Process menu...
[12:04:41] Copy main resources
[12:04:41] Documentation generated in ./documentation/ in 11.933 seconds using gitbook theme
[12:04:41] Serving documentation from ./documentation/ at http://127.0.0.1:8080
[12:04:41] Watching sources in src folder
[12:05:01] File src/app/app.module.ts has been changed
[12:05:02] Get diff dependencies data
[12:05:02] ReferenceError: Dependencies is not defined
[12:05:02] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/issues/new)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xxxxxxx@0.37.0 compodoc: `compodoc -p tsconfig.json -s --watch --disableGraph`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xxxxxxx@0.37.0 compodoc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yile/.npm/_logs/2018-09-06T11_05_02_662Z-debug.log
Motivation for or Use Case
Reproduce the error
This error occurs on every project, on different macs, even with a test fresh angular project i’ve set up.
Related issues
Suggest a Fix
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top Results From Across the Web
"ReferenceError: <package> not defined" despite installing the ...
I have a folder in which i have ran npm install chevrotain successfully. Running npm -v chevrotain gives 8.1.2 and I have "chevrotain":...
Read more >Troubleshooting Common Errors - Gatsby
Error : ReferenceError: window is not defined when running gatsby build; Build problems from Field 'browser' doesn't contain a valid alias configuration ...
Read more >How to fix "ReferenceError: primordials is not defined" error
Run npm install , and don't worry, it'll update npm-shrinkwrap.json with a bunch of content. Now, fire your gulp command and enjoy, it...
Read more >Bundling and Building with Parcel - Beginner JavaScript
In this course, whenever we used the command parcel start , that was to start the dev ... uncaught reference error - regeneratorRuntime...
Read more >Setting up your development environment for the Moodle App
4.14 ReferenceError: internalBinding is not defined; 4.15 npm update check failed; 4.16 Unhandled rejection Error: Command failed: ...
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 FreeTop 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
Top GitHub Comments
@troydraws this bug was closed because i fix it in this commit https://github.com/compodoc/compodoc/commit/cc9c887a51d930f16ec8ac786ebaebc474659d4e I’m sorry if it disappoint you.
Will come in next release soon. Regards