Field 'browser' doesn't contain a valid alias configuration

后端 未结 16 2347
无人共我
无人共我 2020-12-01 11:54

I\'ve started using webpack2 (to be precise, v2.3.2) and after re-creating my config I keep running into an issue I can\'t seem to solve I get (sorry in advance

16条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 12:08

    I'm using "@google-cloud/translate": "^5.1.4" and was truggling with this issue, until I tried this:

    I opened google-gax\build\src\operationsClient.js file and changed

    const configData = require('./operations_client_config');
    

    to

    const configData = require('./operations_client_config.json');
    

    which solved the error

    ERROR in ./node_modules/google-gax/build/src/operationsClient.js Module not found: Error: Can't resolve './operations_client_config' in 'C:\..\Projects\qaymni\node_modules\google-gax\build\src' resolve './operations_client_config' ......
    

    I hope it helps someone

提交回复
热议问题