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
{{ message }}
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
As mentioned in downstream issues in graphql-codegen and graphql-config it looks like loading cosmiconfig-typescript-loader default export is buggy in esm.
What went wrong?
The error is exposed when trying the latest esm example in graphql-codegen.
Description
As mentioned in downstream issues in
graphql-codegen
andgraphql-config
it looks like loadingcosmiconfig-typescript-loader
default export is buggy in esm.What went wrong?
The error is exposed when trying the latest esm example in
graphql-codegen
.run
npm run codegen`What did you expect should have happened?
Execution without error
What was the config you used?
Nothing except what's available in the example.
What stacktrace or error messages did you see?
This is caused by default import of
cosmiconfig-typescript-loader
and later export ofloadTs
Similar or dependent issues:
A lot of other packages have the same problems with esm and there's a temporary fix in the
default-import
package that also adds a few related issues:styled
as a named export styled-components/styled-components#3437styled
in node styled-components/styled-components#3601Additional Data
Version of
cosmiconfig-typescript-loader
you're using:3.1.1
Node Version:
18.4
Operating System:
Windows
The text was updated successfully, but these errors were encountered: