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]: @modern-js/plugin-bff doesn't work with moduleResolution Bundler compiler option #6222

Open
adam187 opened this issue Sep 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@adam187
Copy link

adam187 commented Sep 14, 2024

Version

System:
    OS: macOS 12.7.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 113.67 MB / 32.00 GB
    Shell: 3.2.57 - /bin/bash
  Browsers:
    Brave Browser: 128.1.69.168
    Chrome: 128.0.6613.138
    Edge: 128.0.2739.79
    Safari: 15.6.1
  npmPackages:
    @modern-js/app-tools: 2.60.0 => 2.60.0
    @modern-js/plugin-bff: 2.60.0 => 2.60.0
    @modern-js/plugin-express: 2.60.0 => 2.60.0
    @modern-js/runtime: 2.60.0 => 2.60.0
    @modern-js/tsconfig: 2.60.0 => 2.60.0

Details

When @modern-js/plugin-bff and tsconfig.json have moduleResolution configured to Bundler in compilerOptions tsconfig.json It throws an error

TypeError: Unknown file extension ".ts" for .../api/lambda/hello.ts

Reproduce link

https://github.com/adam187/modern-js-bff-example

Reproduce Steps

execute yarn dev

@adam187 adam187 added the bug Something isn't working label Sep 14, 2024
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