Giter Club home page Giter Club logo

Comments (9)

whxaxes avatar whxaxes commented on August 14, 2024

这个跟 egg-ts-helper 没关系,也跟 egg ts 没关系,就算你用 tsc 也一样

from egg-ts-helper.

whxaxes avatar whxaxes commented on August 14, 2024

本身 ts 编译成 js 就是不会去转换连接的

from egg-ts-helper.

whxaxes avatar whxaxes commented on August 14, 2024

如果你要处理,可以考虑用一下 https://github.com/dividab/tsconfig-paths

from egg-ts-helper.

shipfi avatar shipfi commented on August 14, 2024

收到,谢谢。

from egg-ts-helper.

ChobitsSP avatar ChobitsSP commented on August 14, 2024

https://gist.github.com/azarus/f369ee2ab0283ba0793b0ccf0e9ec590

from egg-ts-helper.

taosher avatar taosher commented on August 14, 2024

如果你要处理,可以考虑用一下 https://github.com/dividab/tsconfig-paths

@whxaxes

compile的时候不转path alias没问题的,和tsc行为一致。

但是egg-bin dev的时候应该支持的吧?毕竟ts-ndoe本身就是支持的。现在这种egg-bin的封装,在走到ts-ndoe前就报错了,几乎相当于tsconfig的paths配置不可用了...

from egg-ts-helper.

whxaxes avatar whxaxes commented on August 14, 2024

@taosher 如果只是 dev 支持,那你丢线上跑不得挂了 .... 问题不是更严重了?

from egg-ts-helper.

whxaxes avatar whxaxes commented on August 14, 2024

@taosher 还有就是。。。你哪里看到 ts-node 支持的?什么叫走到 ts-node 前就报错,不经过 ts-node ts 怎么变 js ?怎么跑得起来?

from egg-ts-helper.

taosher avatar taosher commented on August 14, 2024

@taosher 还有就是。。。你哪里看到 ts-node 支持的?什么叫走到 ts-node 前就报错,不经过 ts-node ts 怎么变 js ?怎么跑得起来?

额,我搞错了...我之前的项目是用了tsconfig-paths的...

from egg-ts-helper.

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.