Comments (9)
这个跟 egg-ts-helper 没关系,也跟 egg ts 没关系,就算你用 tsc 也一样
from egg-ts-helper.
本身 ts 编译成 js 就是不会去转换连接的
from egg-ts-helper.
如果你要处理,可以考虑用一下 https://github.com/dividab/tsconfig-paths
from egg-ts-helper.
收到,谢谢。
from egg-ts-helper.
https://gist.github.com/azarus/f369ee2ab0283ba0793b0ccf0e9ec590
from egg-ts-helper.
如果你要处理,可以考虑用一下 https://github.com/dividab/tsconfig-paths
compile的时候不转path alias没问题的,和tsc行为一致。
但是egg-bin dev的时候应该支持的吧?毕竟ts-ndoe本身就是支持的。现在这种egg-bin的封装,在走到ts-ndoe前就报错了,几乎相当于tsconfig的paths配置不可用了...
from egg-ts-helper.
@taosher 如果只是 dev 支持,那你丢线上跑不得挂了 .... 问题不是更严重了?
from egg-ts-helper.
@taosher 还有就是。。。你哪里看到 ts-node 支持的?什么叫走到 ts-node 前就报错,不经过 ts-node ts 怎么变 js ?怎么跑得起来?
from egg-ts-helper.
@taosher 还有就是。。。你哪里看到 ts-node 支持的?什么叫走到 ts-node 前就报错,不经过 ts-node ts 怎么变 js ?怎么跑得起来?
额,我搞错了...我之前的项目是用了tsconfig-paths的...
from egg-ts-helper.
Related Issues (20)
- 执行 npx ets 时报错:SyntaxError: Cannot use import statement outside a module
- egg-mysql如何支持? HOT 1
- process.on('uncaughtException', clean) should throw the error HOT 2
- ets clean 支持清除包含同名 tsx 文件的 js 文件 HOT 4
- 1.23.0 to 1.25.2, auto build diff HOT 1
- 1.25.6生成的mode/index.d.ts 与之前的有差异,导致编译不过 HOT 2
- Auto generated typing errors HOT 2
- webstorm HOT 4
- 添加 egg-socket.io 和 egg-graphql 支持 HOT 4
- 抽象Service,会导致类型丢失。 HOT 2
- 在midway中使用时,plugin.d.ts只会生成内置插件但声明,外部插件的声明不会自动生成 HOT 2
- 升级 chokidar 到 3 HOT 9
- 对于js文件会使用require引入 HOT 1
- Better type inference for egg-mongoose
- jsconfig.json 格式错误
- circulate type HOT 2
- 依赖的ts更新后导致egg-bin项目中的ts-node执行默认切换为4+版本,与之前的ts3+不兼容 HOT 4
- 现在可以支持生成纯js项目的扩展吗?
- 在指定多个controller目录的自定义目录场景下,无法跳过中间目录
- getEggInfo 调用 node 时使用的是直接拼接命令,当项目目录出现空格时会报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg-ts-helper.