alexjoverm / typescript-library-starter

Starter kit with zero-config for building a library in TypeScript, featuring RollupJS, Jest, Prettier, TSLint, Semantic Release, and more!
MIT License
4.37k stars 493 forks source link

node_modules/@types/node/assert.d.ts(1) '{' or ';' expected. #333

Open yiliang114 opened 3 years ago

yiliang114 commented 3 years ago

If you had got the problem, do not worry, you can just update typedoc and ts version. #332

    "typedoc": "^0.14.2",
    "typescript": "^4.0.5"
jschroed91 commented 3 years ago

My hero :)

WXperia commented 3 years ago

我整了一早上。看到你这个issue老哥太牛了

RowgerGo commented 2 years ago

China help China

HondryTravis commented 2 years ago

god

772778995 commented 1 year ago

You need to update the TypeScript and Typedoc dependencies at the same time, and modify the build script command

{
  "scripts": {
    "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc src/index.ts",
  },
  "devDependencies": {
    "typedoc": "^0.24.1",
    "typescript": "^5.0.4"
  }
}
xuzc0618 commented 1 month ago

我只升级了"typescript"到4.0.5就可以了。感谢。