svelte-native icon indicating copy to clipboard operation
svelte-native copied to clipboard

Error: InvalidCharacterError while building for android

Open retr0cube opened this issue 1 year ago • 6 comments

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?

retr0cube avatar May 23 '23 20:05 retr0cube

@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

vallemar avatar May 31 '23 21:05 vallemar

@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

retr0cube avatar May 31 '23 21:05 retr0cube

@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

vallemar avatar May 31 '23 21:05 vallemar

@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.

retr0cube avatar May 31 '23 21:05 retr0cube

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

vallemar avatar May 31 '23 21:05 vallemar

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

retr0cube avatar May 31 '23 21:05 retr0cube