-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newer Angular 4.3.5 throws errors with sample #22
Comments
Will try it now, however the latest angular-cli (that is used to generate this sample repo) is only generating the package.json file with @angular/core v
Not sure what you mean by "Angular Webpack version"? |
Just checked and everything has worked for me without any issues. I have also updated this repo to be generated from the latest angular-cli (1.3.1). After running The errors that you're observing:
are PhantomJs specific. It means that you are using PhantomJs in your wallaby config (not the default Electron runner as in this repo config), and if you are using PhantomJs, them you need to uncomment polyfills as described in the README file:
specifically various core-js polyfills required for PhantomJs to function correctly. I think the same applies to issue that you've referenced:
Try cloning this repo latest version, running Let me know if it works for you. |
thank you for the rapid turn around. What i meant is that if a I was wondering if you could recommend a working Angular 4 and Webpack starter. I did try out https://github.com/wallabyjs/angular2-webpack-starter , but that didn't work. Yes, I understand that repo is geared toward Angular 2. |
I wasn't able to reproduce the issue and can't reproduce it now. As I have mentioned, the errors you've listed must be occurring because PhantomJs is used without required polyfills (at least it's the only way I can even get those errors). Try the cloning latest version of this repo and running
Yep, that repo was created a while ago. Looks like the starter file structure had changed a bit since then. I'll update that sample project's config and let you know once it's ready. |
As promised, I have updated our sample. You may find the updated sample (and the instructions how to run wallaby in the project's readme file) in this repo: https://github.com/wallabyjs/angular-starter. |
ngCliWebpackSample/package.json
Line 18 in b7c1b87
Are others seeing errors with a clean install of this sample Wallaby project?
I see in the Wallaby Console in Webstorm
TypeError: useValue,useFactory,data is not iterable!
TypeError: undefined is not a constructor (evaluating 'Object.assign({ changeDetection: ChangeDetectionStrategy.Default }, c)')
I would highly recommend supplying shrinkwrap JSON to avoid installations from blowing up for others.
Reverting
dependencies
anddevDependencies
to earlier versions of Angular 4.1 or 4.2 eliminate the runtime errors.On a side note, will the Angular Webpack version work? I had zero luck, probably due to same problems with semver values in package.json being too loose or outdated.
Others are suffering from this problem
karma-runner/karma-phantomjs-launcher#205
The text was updated successfully, but these errors were encountered: