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
frankie567 opened this issue
Jun 7, 2018
· 5 comments
Assignees
Labels
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
I'm currently building a TypeScript project using googleapis library (version 32.0.0, with google-auth-library version 1.6.0). Whenever I try to build my project, here are the errors I get:
node_modules/google-auth-library/build/src/auth/googleauth.d.ts(18,8): error TS1192: Module '"fs"' has no default export.
node_modules/google-auth-library/build/src/auth/googleauth.d.ts(19,8): error TS1192: Module '"http"' has no default export.
node_modules/google-auth-library/build/src/auth/googleauth.d.ts(20,8): error TS1192: Module '"stream"' has no default export.
node_modules/google-auth-library/build/src/auth/jwtaccess.d.ts(17,8): error TS1192: Module '"stream"' has no default export.
node_modules/google-auth-library/build/src/auth/jwtclient.d.ts(18,8): error TS1192: Module '"stream"' has no default export.
node_modules/google-auth-library/build/src/auth/oauth2client.d.ts(18,8): error TS1192: Module '"http"' has no default export.
node_modules/google-auth-library/build/src/auth/refreshclient.d.ts(17,8): error TS1192: Module '"stream"' has no default export.
It seems that TypeScript expects the import * as http from 'http' syntax for the standard modules.
I tried with both TypeScript 2.8 and 2.9, same issue. Node version: 8.11.
Could you look into this? Is there something wrong with my build configuration?
Best regards,
François Voron
The text was updated successfully, but these errors were encountered:
I'm seeing the same issue on continuous tests for @google-cloud/profiler with node 6, and can reproduce locally with node 8 and 10 when I modify the project's package-lock.json to use v1.6.0. I'm using typescript 2.8
JustinBeckwith
added
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Jun 7, 2018
esModuleInterop was introduced as a default for gtshere. We upgraded to gts@0.6, which included the move to synthetic imports in #372. Still figuring out what's up.
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hi,
I'm currently building a TypeScript project using
googleapis
library (version32.0.0
, withgoogle-auth-library
version1.6.0
). Whenever I try to build my project, here are the errors I get:It seems that TypeScript expects the
import * as http from 'http'
syntax for the standard modules.I tried with both TypeScript 2.8 and 2.9, same issue. Node version: 8.11.
Could you look into this? Is there something wrong with my build configuration?
Best regards,
François Voron
The text was updated successfully, but these errors were encountered: