Comments (3)
Can you give me a working example that demonstrates the problem? I've tried to reproduce this but underlying typescript errors are nicely caught in the on("error") handler. Are you using the latest versions of TypeDoc, TypeScript and gulp-typedoc?
./bla.ts:
export class Bla {
%&#*(%_#*())
}
./gulpfile.js
var gulp = require("gulp");
var typedoc = require("gulp-typedoc");
gulp.task("default", [], function () {
return gulp.src("./bla.ts")
.pipe(typedoc({
module: "commonjs",
target: "es6",
out: "./doc"
}))
.on("error", function (e) {
console.log("trapped error", e)
});
});
./package.json
{
"name": "temp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"gulp": "^3.9.1",
"gulp-typedoc": "^2.0.1",
"typedoc": "^0.5.3",
"typescript": "^2.1.4"
}
}
output:
$ gulp
[21:14:58] Using gulpfile ~\Documents\GitHub\temp\gulpfile.js
[21:14:58] Starting 'default'...
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Unexpected token. A constructor, method, accessor, or property was expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Expression expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Invalid character.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Expression expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Expression expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Invalid character.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Expression expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
Expression expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(4)
';' expected.
[21:15:00] C:/Users/Rodzj/Documents/GitHub/temp/bla.ts(5)
Declaration or statement expected.
trapped error { [Error: Failed to generate load TypeDoc project.]
message: 'Failed to generate load TypeDoc project.',
showStack: false,
showProperties: true,
plugin: 'gulp-typedoc',
__safety: { toString: [Function: bound ] } }
[21:15:00] 'default' errored after 1.74 s
[21:15:00] Error in plugin 'gulp-typedoc'
Message:
Failed to generate load TypeDoc project.
from gulp-typedoc.
Just to be sure, I added an extra try-catch block in v2.0.2 Please let me know if it fixes your issue
from gulp-typedoc.
Hmm, typically I've tried today and can't re-create either! I am using a slightly older version;
"typedoc": "0.5.1",
"typescript": "2.1.1"
But your test example above runs fine with this set up. Thanks for looking into this, I'll re-open the issue if I can reliably re-create it again.
from gulp-typedoc.
Related Issues (20)
- Provide option for using tsconfig.json file HOT 2
- Exclude option not working HOT 2
- suppress private properties? HOT 1
- Change the typedoc dependencies to peer HOT 3
- Problems getting started - no output generated HOT 3
- document ignore/exclude option HOT 3
- Feature Suggestion HOT 2
- Type definitions HOT 4
- The "logger" option is ignored HOT 3
- fix dependency on event-stream HOT 5
- Missing options keys HOT 5
- Incomplete documentation HOT 1
- Error in plugin "gulp-typedoc" HOT 1
- Should there be entryPoints according to typedoc HOT 1
- Should there be entryPoints according to typedoc? HOT 6
- Generating doc and json for multiple sets of files leads to no output HOT 1
- gulp-typedoc options overwritten HOT 3
- Feature request `includeVersion` support HOT 1
- docs folder not generated after the task ends
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-typedoc.