marcreichel/alpine-typewriter

Spacing between words

Closed this issue · 11 comments

Good day. It seems like there is an issue with spacing between words. I'll try to look at it in-depth tomorrow. But just a heads up. Thanks for the package through,

Input:

image

This is the end result.

image

Hi, thanks for reporting. I could not reproduce your behavior though. Could you maybe provide a little more information on your setup or build process? Perhaps the spaces get trimmed away in your setup for some reason.

Good day,

Thanks for the response.

My composer.json file is as follows:

image

image

My package.json file is as follows:

image

image

My app.js file is as follows:

image

I hope this helps.

Thanks! I cannot see any problems in your setup. The only “difference” would be, that you're using Vite for your build process. Whereas other sites where it's working as expected still use Laravel Mix. I will try to set up a project with Vite and check if this is the issue.

Good day,

Thanks for the response. I look forward to hearing back from you.

@ikenye

Hi, here's some update for you:

I've set up a new project with vite now. And I can reproduce the missing spaces between the words. So we can circle down the issue to some problem with Vite. But I'm not quite sure yet how to solve this issue. I will fiddle around a bit and keep you updated 👍🏼

A quickfix/workaround for now would be to replace the spaces by non-breaking spaces ( ). So Hello World would become Hello World. Not pretty but it works though.

Thanks for the response. As long as it works, for now, that should be okay. Thanks for everything. Not too sure if you want to keep the issue open or move it elsewhere.

Log1x commented

Having this same issue using https://github.com/roots/bud for asset compilation.

@ikenye I'll keep the issue open as I want to search for a solution (or let anyone interested search for a solution) 👍🏼

@ikenye @Log1x Fixed the behavior with version 1.0.1. Feel free to update 🙂

Thanks a mill!