apollographql / apollographql/docs-examples
Node.js Typescript Apollo-Server Example Bad Module Resolution
- Dominant language
- TypeScript
- Stars
- 55
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
The basic [Apollo Server 4](https://github.com/apollographql/docs-examples/tree/main/apollo-server/v4/getting-started) example has a bad module resolution configuration when used in conjunction with modern versions of Node.js. It works as-is, but as soon as you break the server into multiple files and import one into the other, the es6 module resolution breaks.
It would be nice to post a server example that allows for importing of additional files based on the initial configuration setup.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Apollo Server 4 getting-started example at apollo-server/v4/getting-started and inspect its module resolution configuration for modern Node.js. Verify the example after splitting the server across multiple files with imports; done means the ES module setup continues to work with additional files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100