@riteshbhat17 wrote:
when i give this command
ionic cordova build android --prod
i am getting this error.[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date. Error: ./~/firebase/app/shared_promise.js Module not found: Error: Can't resolve 'promise-polyfill' in 'C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\firebase\app' resolve 'promise-polyfill' in 'C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\firebase\app' Parsed request is a module using description file: C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\firebase\package.json (relative path: ./app) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\firebase\package.json (relative path: ./app) resolve as module looking for modules in C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules using description file: C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\package.json (relative path: ./node_modules) using description file: C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\package.json (relative path: ./node_modules/promise-polyfill) as directory C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill doesn't exist no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill.ts doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill.json doesn't exist [C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill] [C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill] [C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill.ts] [C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill.js] [C:\Users\BhatRitesh\Desktop\Think-Digital\campusLink\node_modules\promise-polyfill.json] @ ./~/firebase/app/shared_promise.js 38:35-62 @ ./~/firebase/app/firebase_app.js @ ./~/firebase/app.js @ ./src/pages/login/login.ts @ ./src/app/app.module.ts @ ./src/app/app.module.ngfactory.ts @ ./src/app/main.tsCan anyone tell how to resolve this error.?
Posts: 1
Participants: 1