ng-alain / sts

Swagger to sf schema & st column in ng-alain
MIT License
21 stars 3 forks source link

can't build #5

Closed devcui closed 2 years ago

devcui commented 2 years ago
yarn build
yarn run v1.22.17
$ bash ./build.sh
node_modules/@types/meow/index.d.ts:9:31 - error TS7016: Could not find a declaration file for module 'minimist-options'. '/Users/yunzai/Projects/sts/node_modules/minimist-options/index.js' implicitly has an 'any' type.
  Try `npm install @types/minimist-options` if it exists or add a new declaration (.d.ts) file containing `declare module 'minimist-options';`

9 import * as buildOptions from 'minimist-options';
                                ~~~~~~~~~~~~~~~~~~

Found 1 error.

i use npm install @type/minimist-options but the always has the error with npm run build.

devcui commented 2 years ago

so i revert package.json

 "dependencies": {
    "@types/minimist": "^1.2.2",
    "@types/swagger-schema-official": "^2.0.15",
    "extend": "^3.0.2",
    "meow": "^5.0.0",
    "request": "^2.88.0"
  },
  "devDependencies": {
    "@types/chai": "^4.1.7",
    "@types/extend": "^3.0.0",
    "@types/meow": "^5.0.0",
    "@types/mocha": "^5.2.5",
    "@types/node": "^10.12.2",
    "@types/request": "^2.48.1",
    "@types/sinon": "^7.0.7",
    "chai": "^4.2.0",
    "chalk": "^2.4.0",
    "mocha": "^5.2.0",
    "sinon": "^7.2.4",
    "ts-node": "^7.0.1",
    "tslint": "^5.11.0",
    "tslint-config-prettier": "^1.17.0",
    "typescript": "^3.2.2"
  }