-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Invalid export in /googleapis/build/src/index.d.ts #2357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I get the same problem - not using loopback, though, just a typescript server being webpack-ed by angular 8 for server-side-rendering. Edit: actually I noticed that my problem is merely similar. I get these problems trying to import
I'm not actually sure if it's the same problem, but they look related at a glance |
Yes, this is same issue |
@HachimanHiki @salitha-pathi if you run |
I'm using an Angular 8 project which doesn't work with Typescript > 3.6. Is there an older version of googleapis that would support Angular 8? |
@ocket8888 yes, please try installing |
It works for me with |
microsoft/TypeScript#34903 adds support for the new export * as ns from 'specifier' syntax, which is after |
Looks like this one is solved - to use this lib, you need to be using at least TypeScript 3.8.x. Sadly - there's no way we can figure out how to express which version of TypeScript we require in a programmatic sense (peer dependencies, optional dependencies, strict engine checks, etc). I know this answer isn't super fulfilling, but our plan is to start gating TypeScript tooling version on semver major releases of the library (which for this library ... is often.). |
Following error raises when the library is used with Loopback 4
`node_modules/googleapis/build/src/index.d.ts:5:10 - error TS1005: 'from' expected.
5 export * as Common from 'googleapis-common';
~~
node_modules/googleapis/build/src/index.d.ts:5:13 - error TS1005: ';' expected.
5 export * as Common from 'googleapis-common';
~~~~~~
node_modules/googleapis/build/src/index.d.ts:5:20 - error TS1005: ';' expected.
5 export * as Common from 'googleapis-common';
~~~~
node_modules/googleapis/build/src/index.d.ts:5:25 - error TS1005: ';' expected.
5 export * as Common from 'googleapis-common';
`
Environment details
1.
googleapis
version: 59.0.0typescript
version: 3.7.52.
googleapis
version: 59.0.0typescript
version: 3.7.5Thanks!
The text was updated successfully, but these errors were encountered: