Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different padding between localhost and netlify #3254

Open
zxdream64230 opened this issue Feb 6, 2025 · 2 comments
Open

Different padding between localhost and netlify #3254

zxdream64230 opened this issue Feb 6, 2025 · 2 comments
Labels
bug Something isn't working needs reproduction triage v3 #1289

Comments

@zxdream64230
Copy link

zxdream64230 commented Feb 6, 2025

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.12

Reproduction

My github is private for now

Description

I have different paddings between my local environment and netlify

On localhost alla paddings are good but on netlify vertical paddings are set to 0. Especially when I have forms or buttons.

Localhost : https://postimg.cc/JHcTYTKF

Netlify : https://postimg.cc/qtSZN6z1

Additional context

No response

Logs

3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 1583| }
3:24:32 PM: 1584| .rounded-full {
3:24:32 PM: 1585| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 1586| }
3:24:32 PM: 1587| .rounded-lg {
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 5971| &::before {
3:24:32 PM: 5972| content: var(--tw-content);
3:24:32 PM: 5973| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 5974| }
3:24:32 PM: 5975| }
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 6112| &::before {
3:24:32 PM: 6113| content: var(--tw-content);
3:24:32 PM: 6114| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 6115| }
3:24:32 PM: 6116| }
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 6253| &::before {
3:24:32 PM: 6254| content: var(--tw-content);
3:24:32 PM: 6255| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 6256| }
3:24:32 PM: 6257| }
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 1583| }
3:24:32 PM: 1584| .rounded-full {
3:24:32 PM: 1585| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 1586| }
3:24:32 PM: 1587| .rounded-lg {
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 5971| &::before {
3:24:32 PM: 5972| content: var(--tw-content);
3:24:32 PM: 5973| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 5974| }
3:24:32 PM: 5975| }
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 6112| &::before {
3:24:32 PM: 6113| content: var(--tw-content);
3:24:32 PM: 6114| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 6115| }
3:24:32 PM: 6116| }
3:24:32 PM: [warn] [vite:css][postcss] Lexical error on line 1: Unrecognized text.
3:24:32 PM: Erroneous area:
3:24:32 PM: 1: infinity * 1px
3:24:32 PM: ^..^
3:24:32 PM: 6253| &::before {
3:24:32 PM: 6254| content: var(--tw-content);
3:24:32 PM: 6255| border-radius: calc(infinity * 1px);
3:24:32 PM: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3:24:32 PM: 6256| }
3:24:32 PM: 6257| }

@zxdream64230 zxdream64230 added bug Something isn't working triage v3 #1289 labels Feb 6, 2025
@stijns96
Copy link

stijns96 commented Feb 6, 2025

I'm also getting errors due to infinity.

Image Image

@huongphamx
Copy link

same here. normal build with nuxt build failed

log: [plugin @tailwindcss/vite:generate:build] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction triage v3 #1289
Projects
None yet
Development

No branches or pull requests

4 participants