Giter VIP home page Giter VIP logo

Comments (4)

jeryqwq avatar jeryqwq commented on August 20, 2024
  1. 如果是相关packages下面的包ts报错,可以使用npm run build-lib打包下相关包,就能生成ts类型文件。
  2. 可以提供你的ts版本吗,可能是版本太旧了,具体看这里
    image

from proapplication.

pangxzi avatar pangxzi commented on August 20, 2024
  1. 如果是相关packages下面的包ts报错,可以使用npm run build-lib打包下相关包,就能生成ts类型文件。
  2. 可以提供你的ts版本吗,可能是版本太旧了,具体看这里
    image

1.执行pnpm build-lib

image

image

3.就是packages下面的包必须打包才可以在项目中使用吗?可以直接使用吗?

from proapplication.

jeryqwq avatar jeryqwq commented on August 20, 2024

@mwj610

  1. 第一个问题可以参考下相关搜索平台的答案,window平台我这边无法复线,也欢迎pr不知道这个行不行
    3,packages使用是可以不用打包的,但是ts类型适配是需要打包(可能是因为我对ts的配置还不够深入),因为前期的代码改动都比较大,所以支持了package的热更新,packages稳定后正常应该需要打包后再使用,否则违反了monorepo原则,包很多的情况下会卡顿,把umi里配置的alias删除即可关闭packages的热更新。

from proapplication.

pangxzi avatar pangxzi commented on August 20, 2024

@mwj610

  1. 第一个问题可以参考下相关搜索平台的答案,window平台我这边无法复线,也欢迎pr不知道这个行不行
    3,packages使用是可以不用打包的,但是ts类型适配是需要打包(可能是因为我对ts的配置还不够深入),因为前期的代码改动都比较大,所以支持了package的热更新,packages稳定后正常应该需要打包后再使用,否则违反了monorepo原则,包很多的情况下会卡顿,把umi里配置的alias删除即可

👌

from proapplication.

Related Issues (8)

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.