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

Cannot find module with ES2015 modules config #669

Closed
DanielRamosAcosta opened this issue Nov 13, 2017 · 1 comment
Closed

Cannot find module with ES2015 modules config #669

DanielRamosAcosta opened this issue Nov 13, 2017 · 1 comment

Comments

@DanielRamosAcosta
Copy link

When using TypeScript with "module": "es2015", the compiler gives the following error:

index.ts(1,30): error TS2307: Cannot find module 'apollo-server-express'.

Here is the content of the index.ts:

import {graphqlExpress} from 'apollo-server-express'
  • typescript: 2.6.1
  • apollo-server-express: 1.2.0
  • graphql: 0.11.7

Any idea why this is happening?

@DanielRamosAcosta
Copy link
Author

The solution was to set "moduleResolution": "node" at tsconfig.json

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant