lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

E2E testing. Field 'browser' doesn't contain a valid alias configuration. #253

Closed mpadronm90 closed 7 years ago

mpadronm90 commented 7 years ago

First, thanks for this great work!! Now i followed this tutorial. When execute test then appear this error:

[14:21:53]  ionic-app-scripts 1.3.12 
[14:21:53]  build dev started ... 
[14:21:53]  clean started ... 
[14:21:53]  clean finished in 3 ms 
[14:21:53]  copy started ... 
[14:21:53]  transpile started ... 
[14:21:58]  transpile finished in 4.74 s 
[14:21:58]  preprocess started ... 
[14:21:58]  deeplinks started ... 
[14:21:58]  deeplinks finished in 173 ms 
[14:21:58]  preprocess finished in 175 ms 
[14:21:58]  webpack started ... 
[14:21:58]  copy finished in 5.14 s 
[14:22:20]  ionic-app-script task: "build" 
[14:22:20]  Error: ./~/firebase/app/shared_promise.js Module not found: Error: Can't resolve 'promise-polyfill' in 
            '/Users/mpadronm/WebstormProjects/oniway-mobile/node_modules/firebase/app' resolve 'promise-polyfill' in 
            '/Users/mpadronm/WebstormProjects/oniway-mobile/node_modules/firebase/app' Parsed request is a module using 
            description file: /Users/mpadronm/WebstormProjects/oniway-mobile/node_modules/firebase/package.json 
            (relative path: ./app) Field 'browser' doesn't contain a valid alias configuration after using description 
           ......

Field 'browser' doesn't contain a valid alias configuration is a resolve issue in webpack 2. Here they explain that.

¿Do you haved the same problem?

lathonez commented 7 years ago

Hey,

You can check what our builds are doing at any time by checking Travis.

https://travis-ci.org/lathonez/clicker

We do not have this issue, it seems to be firebase specific. Have you applied the workaround from the issue you linked?

Stephen

mpadronm90 commented 7 years ago

Sorry, was my error. Thanks for your aclaration!!