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

update for deprecated addAutoImportDir in Nuxt 3 #86

Closed
chrisnaadhi opened this issue Nov 17, 2022 · 1 comment
Closed

update for deprecated addAutoImportDir in Nuxt 3 #86

chrisnaadhi opened this issue Nov 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@chrisnaadhi
Copy link

chrisnaadhi commented Nov 17, 2022

Version

nuxt-directus: 3.2.1
nuxt: 3.0.0

Steps to reproduce

Install new fresh Nuxt 3:
npx nuxi init nuxt-app

then install nuxt-directus with the config
npm i nuxt-directus

then run the dev server
npm run dev

What is Expected?

Nuxt run the dev server with nuxt-directus seamlessly

What is actually happening?

Glad to see the stable version of Nuxt 3, but seems some modules need update to suit the stable version.
I'm try to running stable version of Nuxt 3 with nuxt-directus module but seems like there is import changes in stable version nuxt/framework#9029.

When try to run dev server the console warn me an error :
Error while requiring module nuxt-directus: SyntaxError: The requested module '@nuxt/kit' does not provide an export named 'addAutoImportDir'
while i think the PR of #85 should fix this, but when i'm trying change the module manually in node_modules the console warn me :
image

@chrisnaadhi chrisnaadhi added the bug Something isn't working label Nov 17, 2022
@Intevel
Copy link
Owner

Intevel commented Nov 17, 2022

Fixed with the newest release! ✨✨

@Intevel Intevel closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants