halfnelson / svelte-native

Svelte controlling native components via Nativescript
MIT License
1.82k stars 78 forks source link

Error: InvalidCharacterError while building for android #339

Open retr0cube opened 1 year ago

retr0cube commented 1 year ago

Hi! I just started using Svelte Native. First the install process was full of dependency deprecation warnings, Second when I run tns/ns preview I get the following error:

image Install process: image In my opinion this is bad DX; SO How can I solve this?

vallemar commented 1 year ago

@retr0cube can you share your home.svelte component. For warning this is a work in progress and update will be released soon https://github.com/NativeScript/nativescript-cli/pull/5722

retr0cube commented 1 year ago

@retr0cube can you share your home.svelte component. For warning this is a work in progress and update will be released soon https://github.com/NativeScript/nativescript-cli/pull/5722

Hi @vallemar ! It's untouched, like you provided when i follow the instructions. I don't have access to my pc as of now, if you need it i will share it tomorrow. Can you reproduce this error? Because i saw similar errors from different posts and I can't seem to find the cause/solution to it.

Sidenote: I also tried checking this component and found no irregular character at the specific line mentioned in the error

vallemar commented 1 year ago

@retr0cube Now that I see the path of your project I think that's the problem, you have emoji. svelte-loader is throwing the character error exception and I think it refers to that. I would try it in a more normal path

retr0cube commented 1 year ago

@retr0cube Now that I see the path of your project I think that's the problem, you have emoji and .svelte-loaderis throwing the character error exception and I think it refers to that. I would try it in a morenormal` path

Could you please test that? I don't have access to my pc.

vallemar commented 1 year ago

@retr0cube sorry i'm on mobile but i'm pretty sure that could be the cause

retr0cube commented 1 year ago

@vallemar would test that on codespaces and see if it's the case