-
-
Notifications
You must be signed in to change notification settings - Fork 40
Runtime crash when extending application with webpack #65
Comments
@Pip3r4o Thanks for moving it to the correct channel, highly appreciated. |
Hi @code0wl, Can you provide a small app, reproducing the problem? Also do you use webpack with the uglify plugin or not? |
@sis0k0 I will make a demo project mimicking the the same issue we are having with bundling for you |
@sis0k0 You may find the project at the following location. Let me know if you prefer it in private mode where I can send you an invite instead |
Hey @code0wl, The problem is that the file |
Awesome suggestion, @sis0k0 I have solved it by ignoring the file from the webpack configuration. But including it in vendor seems also like a viable solution. We can mark this as closed as far as I know. |
Great! I'm glad that solved the problem. |
@sis0k0 Will you please share complete code? I tried like this in
or
But nothing is working ... After complied
In where I am doing mistake? |
@NickIliev Thanks for your suggestion. That didn't work for me but this one worked: #235 (comment)
But now I am getting this error:
My
Any suggestion? |
@jibon57 I was able to reproduce the issue with a test project of mine. Will post here any additional information. |
@jibon57 there is a change in the way we add custom components in here is how I've extend the activity and build the application with webpack. |
@NickIliev thanks for the solution & sorry for late response. Did you tried it from windows machine? I am getting this error:
config:
I think it should be like this:
|
@NickIliev the solution you have given above not working if I am trying to extend both Application & Activity.
|
@jibon57 there is a known bug with [email protected] on Windows which you are hitting (paths are incorrect) |
From @code0wl on February 2, 2017 21:38
Running the application with bundle enabled is causing the following runtime error.
How to reproduce:
--bundle
cli flagThe following error occurs
This categorizes the potential issue as a Runtime error
Application works fine with
Application breaks with tns run android --bundle
My current stack
Error can be reproduced with a new clean Angular Native project and running with the bundle flag
Copied from original issue: NativeScript/android#701
The text was updated successfully, but these errors were encountered: