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

[Bug]: When building using useContext in koa I am getting a typing error #6139

Closed
alexandesigner opened this issue Aug 28, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@alexandesigner
Copy link

版本信息

System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M1
    Memory: 353.55 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 128.0.6613.85
    Safari: 17.6
  npmPackages:
    @modern-js/app-tools: 2.58.1 => 2.58.1
    @modern-js/plugin-bff: 2.58.1 => 2.58.1
    @modern-js/plugin-garfish: 2.58.1 => 2.58.1
    @modern-js/plugin-koa: 2.58.1 => 2.58.1
    @modern-js/plugin-server: 2.58.1 => 2.58.1
    @modern-js/plugin-ssg: 2.58.1 => 2.58.1
    @modern-js/runtime: 2.58.1 => 2.58.1
    @modern-js/tsconfig: 2.58.1 => 2.58.1

问题详情

When building using useContext in koa I am getting a typing error

复现链接

No need

复现步骤

It works fine when developing, however when I build the application it appears that some export type is missing.

Screenshot 2024-08-28 at 13 24 08 Screenshot 2024-08-28 at 09 27 19
@alexandesigner alexandesigner added the bug Something isn't working label Aug 28, 2024
@yimingjfe
Copy link
Member

I created a new project and run build command, but it didn't reproduce the issue, please provide a link to this project reproduction

@alexandesigner
Copy link
Author

@yimingjfe thanks for feedback

I found the problem, it was in my implementation.

I am embedding the context and ended up not making the correct reference in the internal element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants