Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

CaseyHaralson/apolloserver-bug-7222

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem Description

When the tsconfig moduleresolution is set to "nodenext", the @apollo/server can't be imported because: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'.

But, changing the moduleresolution to "node" will make the import work.

Steps

npm install

  1. Run the build and see the error

npm run build

  1. Change the tsconfig.json "moduleResolution" value to "node".
  2. Run the build again and it should build

npm run build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages