Skip to content

Missing type exports #523

@Yizack

Description

@Yizack

Describe the bug
Hello since version 0.8.22 the package is missing all type exports. I think it has to be a change made within @nuxt/module-builder or @nuxt/kit but I wanted to report it here.

Types are not being rendered and exported from dist/types.d.ts, only default is exported

See the difference:
npm: v0.8.22
npm: v0.8.21

I noticed adding

"exports": {
  ".": {
    "types": "./dist/module.d.ts",
    "import": "./dist/module.mjs",
    "require": "./dist/module.cjs"
  }
}

Especially the "types": "./dist/module.d.ts" part solves it but I don't know if this is the right thing to do.
Reference from: nuxt/ui/package.json

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/nuxt-starter-hnnmurjf?file=app.vue
  2. Wait for install and type check commands to run
  3. See error

Expected behavior
Prior 0.8.22 type exports used to work and could use them through my nuxt app

Possibly related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions