aliyun / api-gateway-nodejs-sdk

The API Gateway SDK for Node.js
MIT License
107 stars 23 forks source link

Error: undefined Unable to resolve module `url` from `node_modules/aliyun-api-gateway/lib/client.js`: url could not be found within the project. #30

Open inkCrazy opened 4 years ago

inkCrazy commented 4 years ago

yarn add aliyun-api-gateway方式安装 "react": "16.11.0", "react-native": "0.62.2", "aliyun-api-gateway": "^1.1.6", 报错信息如下:

Error: undefined Unable to resolve module `url` from `node_modules/aliyun-api-gateway/lib/client.js`: url could not be found within the project.

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules: rm -rf node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
reportException @ Object.es7.js:12