-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[apollo-server-koa] Has no default import #2110
Comments
Same here also in apollo-server-express
|
I just make a patch with normal import and rewrite that files to correct and after this - build successful |
@ellipticaldoor I create gists with patching this issue. apollo-server-koa+2.3.1.patch and apollo-server-core+2.3.1.patch |
The same issue I encountered, so how do I fix it? |
@anymost Just update apollo-server version in your package.json. Need >= 2.4.3 version or create patch in your project if you still have old version < 2.4.3 version. See above my example patch for that issue. |
The version of apollo-server-koa I used is 2.4.8. The error happened when I use tsc to build the program. But when I use ts-node to development, The error wouldn't happened. |
@doroninds Finally, I fixed the error by upgrading @types/graphql and setting "esModuleInterop" to true in tsconfig.json |
Relates-to or duplicated-by #1977, #2519, #2521 (and more). Thanks so much for opening this originally. The important thing here is that the consuming project needs to adopt It may be possible to avoid the type errors on an existing project by enabling |
apollo-server-koa: 2.3.1
Description: Can't build and compile files while in core package types has wrong imports
Error log:
The text was updated successfully, but these errors were encountered: