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

Getting started tutorial has typescript issues... #7835

Open
Dakuan opened this issue Feb 15, 2024 · 2 comments
Open

Getting started tutorial has typescript issues... #7835

Dakuan opened this issue Feb 15, 2024 · 2 comments

Comments

@Dakuan
Copy link

Dakuan commented Feb 15, 2024

Issue Description

followed the tutorial, but after running the compiled files I get

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/git/api/dist/app

Link to Reproduction

https://www.apollographql.com/docs/apollo-server/getting-started/#step-1-create-a-new-project

Reproduction Steps

import a file (any file) into your ts

@saulojoab
Copy link

Seeing the same issue.

Seems like the compile script isn't converting the imports to have .js at the end, making it seem they're wrong.

image

@saulojoab
Copy link

As a workaround, I installed the tsx library and created a new script:

"dev": "nodemon --exec tsx src/index.ts"

This runs without having to build anything.

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