Skip to content

Error: InvalidUnit #152

@comporell

Description

@comporell

hello,
I use "tailwindcss": "^3.1.8" and "@nativescript/tailwind": "^2.0.0",

after angular 14.2.0 upgrade I started having this error below:

ERROR in ./src/app.android.scss Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): Error: InvalidUnit at G:\GitHub\hw\src\app.android.scss:2021:3 at parseSingleAnimationShorthand (G:\GitHub\hw\node_modules\@hookun\parse-animation-shorthand\cjs\parseSingleAnimationShorthand.js:44:23) at Declaration (G:\GitHub\hw\node_modules\@nativescript\tailwind\src\expandAnimations.js:14:24) at LazyResult.visitTick (G:\GitHub\hw\node_modules\postcss\lib\lazy-result.js:502:16) at LazyResult.runAsync (G:\GitHub\hw\node_modules\postcss\lib\lazy-result.js:410:30) at async Object.loader (G:\GitHub\hw\node_modules\postcss-loader\dist\index.js:95:14) @ ./src/main.ts 2:0-28

the app does not run due to the error. The only possible fix that I 'we found is to remove this line from _app-common.scss :

@import '@nativescript/theme/default';

Do you have any other suggestions to fix this? As removing that line mess up my template.

Best Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions