-
Notifications
You must be signed in to change notification settings - Fork 46
could you please add example how to run it with @angular/cli #18
Comments
Thanks for the report @MariMax! Seems strange that Any chance you can put the setup that you created in a github repo so I can further look into it? |
Thanks, seems to reproduce here - I added a
We probably have to be more selective about adding the reporting code to the generated webpack bundles. I will keep investigating! |
otherwise, we end up with an `XMLHttpRequest is not defined` error when HtmlWebpackPlugin is enabled. should solve #18
I fixed this and released as 0.3.2. It seems like the loader does not add the code to collect the type information on your project, however. I will try to figure out why - I have a feeling it may be related to the way @ngtools/webpack works. |
Related issue: angular/angular-cli#9559 |
@urish can u add a example how to integrate it with angular-cli. |
@krishna217 Angular CLI has a built-in webpack configuration and it does not allow you to make arbitrary changes to that configuration. In addition, the There is a workaround though - you can run the instrumentation process manually, outside of webpack, using the |
@urish Thanks for the workaround. |
Update: I had some progress on the angular branch. Once this is released, using TypeWiz with Angular should be as simple as: npm i -D typewiz-webpack typewiz
npm run typewiz angular |
https://medium.com/@urish/angular-schematics-and-the-future-of-typewiz-c266a5442c82 Closing this issue - watch progress in #73 |
ng new typewiz && cd ./typewiz
ng eject
typewiz-webpack
:yarn add typewiz-webpack -D
after build I can see an error in the console:
mac/high sierra/node 9.6.1/yarn 1.5.1/angular-cli 1.7.1
The text was updated successfully, but these errors were encountered: