You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Run npm run test in the config/eslint-rules folder)
Also visible here: If you rename these files to .js to use CommonJS require, TypeScript complains:
Those complaints only go away after removing the type: "module" from this module's package.json - it seems that TypeScript ignores the requireexports conditions once type: "module" is present.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
main
branch of the repository.Expected
Importing this module from a
.mjs
file should workActual
Additional Info
The import statements in the
lib
folder would require a.js
extension for this to work.Here's a pretty minimal reproduction:
https://github.com/apollographql/apollo-client/tree/65e31716c7f363158309e990946f73e410c73837/config/eslint-rules
(Run
npm run test
in theconfig/eslint-rules
folder)Also visible here: If you rename these files to
.js
to use CommonJS require, TypeScript complains:Those complaints only go away after removing the
type: "module"
from this module'spackage.json
- it seems that TypeScript ignores therequire
exports
conditions oncetype: "module"
is present.The text was updated successfully, but these errors were encountered: