Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ajax 如何设置才能引用到? #59

Closed
Raykid opened this issue May 31, 2022 · 2 comments
Closed

@ajax 如何设置才能引用到? #59

Raykid opened this issue May 31, 2022 · 2 comments

Comments

@Raykid
Copy link

Raykid commented May 31, 2022

大佬你好,我不太清楚如何设置才能正确引用 @Ajax 模块,ts 总是报错。谢谢大佬~

image

@gogoyqj
Copy link
Owner

gogoyqj commented Jun 1, 2022

@Raykid 在项目的 tsconfig.json 里配置配置 '@Ajax' 的 path 指向自己的代码实现,ajax 的实现可以参考:https://github.com/e-kit/ekit/blob/master/packages/ajax/src/new-ajax.ts

@gogoyqj gogoyqj closed this as completed Jun 1, 2022
@Raykid
Copy link
Author

Raykid commented Jun 1, 2022

搞定了,感谢。贴出解决方案图片方便其他人查看

tsconfig.json
image

webpack.config.js
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants