googleapis / gax-nodejs

Google API Extensions for Node.js
Apache License 2.0
118 stars 87 forks source link

ERROR in ./node_modules/google-gax/build/src/operations_client_config 2:14 #845

Closed its-dibo closed 4 years ago

its-dibo commented 4 years ago

I'm using firebase admin sdk in an Angular9 project (ivy-enabled) but when I build the project I got the following error

ERROR in ./node_modules/google-gax/build/src/operations_client_config 2:14
Module parse failed: Unexpected token (2:14)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| {
>   "interfaces": {
|     "google.longrunning.Operations": {
|       "retry_codes": {

in Angular9 we don't have a direct access to webpack, (in previous versions of Angular all solutions with webpack failed to solve this issue)

its-dibo commented 4 years ago

solved by adding node_modules to webpack.externals