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

Export types #390

Closed
MarijnFK opened this issue Feb 2, 2024 · 10 comments
Closed

Export types #390

MarijnFK opened this issue Feb 2, 2024 · 10 comments
Labels
enhancement New feature or request

Comments

@MarijnFK
Copy link

MarijnFK commented Feb 2, 2024

The types from /dist/runtime/types/ cannot be imported from the package.
Can you include them in the types.d.ts?

@MarijnFK MarijnFK added the enhancement New feature or request label Feb 2, 2024
@luke-z
Copy link
Contributor

luke-z commented Feb 5, 2024

Just encountered the same problem :)

@marius-mcfly
Copy link

Same here 👀

@mrc-bsllt
Copy link

I think the problem comes from the latest version of Nuxt (3.10.1), because I also have the same problem with i18n types.

@mrc-bsllt
Copy link

mrc-bsllt commented Feb 7, 2024

@danielroe
For the time being, the problem is solved by setting this new parameter to false.
https://nuxt.com/blog/v3-10#bundler-module-resolution

export default defineNuxtConfig({
  future: {
    typescriptBundlerResolution: false,
  },

 // ...
});

@BayBreezy
Copy link
Contributor

Thanks for the temp fix. Hopefully it gets resolved soon

Copy link
Member

Are you importing the types from #ui/types? https://ui.nuxt.com/getting-started/installation#typescript

@BayBreezy
Copy link
Contributor

@benjamincanac , I think you have the repos mixed up?

This is the strapi repo

Copy link
Member

I did indeed get things mixed up, sorry about about that! This should have been fixed by #403 already. Will make a release today 😊

@BayBreezy
Copy link
Contributor

Thank you ❤️

Copy link
Member

@BayBreezy It's been released! Let me know if the problem persists 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants