Skip to content

Expose config with nested props not resolving path #603

@ineshbose

Description

@ineshbose

Version

@nuxtjs/tailwindcss: 6.3.0
nuxt: 3.1.1

Reproduction Link

https://stackblitz.com/edit/github-nzmdqj?file=app.vue

Steps to reproduce

Based on the feature added by #583, import for properties should work using #tailwind-config, but as one concern was raised in #583 (comment):

Also want to confirm about #tailwind-config/* pointing to .nuxt/tailwind.config/* rather than .nuxt/tailwind.config.mjs (for eg, test import { _slate } from '#tailwind-config/theme/colors' in playground/pages/index.vue and see if you get an error).

I'm hitting issues in importing properties.

What is Expected?

color to be imported.

What is actually happening?

#tailwind-config/theme/colors resolves to .nuxt/tailwind.config.mjs/theme/colors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions