peoplewareDo / nativescript-svg

Nativescript plugin - support for .SVG file format
Other
70 stars 55 forks source link

Ns 3, Angular 4, webpack #15

Closed dvdbrk closed 7 years ago

dvdbrk commented 7 years ago

Hi again,

I am trying to make this work with NS 3, Angular 4 and Webpack AOT. But there are so many issues I have not idea what is wrong.

Running npm run start-android-bundle --aot --display-error-details (as per http://docs.nativescript.org/angular/tooling/bundling-with-webpack.html) throws an error:

ERROR in ../\~/nativescript-svg/svg.common.js Module not found: Error: Can't resolve 'ui/core/proxy' in 'C:\Users\dvdbrk\Native app\node_modules\nativescript-svg' @ ../\~/nativescript-svg/svg.common.js 8:12-36 @ ../\~/nativescript-svg/svg.android.js @ ./app.component.ts @ ./app.component.ngfactory.ts @ ./app.module.ngfactory.ts @ ./main.aot.ts`

Is Ns 3 supported? Is webpack supported? Any ideas how to fix this?

theAl commented 7 years ago

I have almost the same error:

TypeError: Could not load view for: SVGImage.Error: Could not find module 'ui/core/proxy'.

Also using NS3 and Angular4 for an iOS app... Some help would be awesome!

bradmartin commented 7 years ago

https://github.com/peoplewareDo/nativescript-svg/pull/18 < this PR will support NS 3+ and support angular. The Webpack support might need some improved pieces to the plugin but should work fine.

victorsosa commented 7 years ago

new release 1.3.0

victorsosa commented 7 years ago

Support for Angular 4 coming soon on release 1.3.4