Giter Site home page Giter Site logo

npm build Failed about fe HOT 8 CLOSED

jicki avatar jicki commented on June 29, 2024
npm build Failed

from fe.

Comments (8)

jsers avatar jsers commented on June 29, 2024
  1. 贴下 build 的命令,不要执行 build:advanced
  2. 贴下 vite 版本

from fe.

jicki avatar jicki commented on June 29, 2024
 > [frontend 5/5] RUN npm install &&     npm run build:
#0 7.132 npm WARN deprecated @codemirror/[email protected]: As of 0.20.0, this package has been merged into @codemirror/language
#0 8.503 npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
#0 9.475 npm WARN deprecated [email protected]: This package has been replaced by @lezer/common
#0 9.622 npm WARN deprecated [email protected]: This package has been replaced by @lezer/lr
#0 13.71 npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
#0 32.91 
#0 32.91 added 786 packages in 32s
#0 32.91 
#0 32.91 164 packages are looking for funding
#0 32.91   run `npm fund` for details
#0 32.92 npm notice 
#0 32.92 npm notice New major version of npm available! 8.1.2 -> 9.6.7
#0 32.92 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.7>
#0 32.92 npm notice Run `npm install -g [email protected]` to update!
#0 32.92 npm notice 
#0 33.27 
#0 33.27 > [email protected] build
#0 33.27 > tsc && cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build

  • vite
    "vite": "^2.1.5",
    "vite-plugin-react-svg": "^0.2.0"
  }

from fe.

jsers avatar jsers commented on June 29, 2024

@jicki
pull 下代码,重新试下呢

from fe.

jicki avatar jicki commented on June 29, 2024

@jicki pull 下代码,重新试下呢

pull 了最新代码以后~还是报错

#0 23.87 npm notice Run `npm install -g [email protected]` to update!
#0 23.87 npm notice 
#0 24.16 
#0 24.16 > [email protected] build
#0 24.16 > tsc && cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build
#0 24.16 
#0 43.55 src/pages/alertRulesBuiltin/index.tsx(93,21): error TS2345: Argument of type 'number | RuleCateType | (() => IterableIterator<RuleCateType>) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | ... 30 more ... | (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<...>[])' is not assignable to parameter of type 'SetStateAction<RuleCateType | undefined>'.
#0 43.55   Type 'number' is not assignable to type 'SetStateAction<RuleCateType | undefined>'.
#0 43.56 src/pages/dashboardBuiltin/index.tsx(76,21): error TS2345: Argument of type 'number | BoardCateType | (() => IterableIterator<BoardCateType>) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | ... 30 more ... | (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<...>[])' is not assignable to parameter of type 'SetStateAction<BoardCateType | undefined>'.
#0 43.56   Type 'number' is not assignable to type 'SetStateAction<BoardCateType | undefined>'.

from fe.

jsers avatar jsers commented on June 29, 2024

是改了内置告警规则的代码吗?看错误信息应该是这部分类型检测报错了

from fe.

jicki avatar jicki commented on June 29, 2024

是改了内置告警规则的代码吗?看错误信息应该是这部分类型检测报错了

是指 nightingale 的代码吗? fe 的代码我没有更改。

from fe.

jsers avatar jsers commented on June 29, 2024

刚重新安装了下依赖复现了,重新 pull 代码再试下

from fe.

jicki avatar jicki commented on June 29, 2024

刚重新安装了下依赖复现了,重新 pull 代码再试下

已经可以 编译 通过了. 感谢

from fe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.