-
Notifications
You must be signed in to change notification settings - Fork 183
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
ERROR Importing directly from a nuxt.config file is not allowed. #429
Comments
Can you please share a reproduction, we cannot help you just with what you shared |
Just basic Nuxt 3 + @nuxtjs/tailwindcss installation. After some tests looks like error is off when I comment out one line in tailwindcss config. nuxt.config.js:
|
Can you reproduce by forking https://stackblitz.com/edit/nuxt-starter-rnulzp?file=app.vue ? |
It is to do with the content [ ] in tailwind.config Uncomment any of the last two entries and it breaks. ./*.{vue,js,ts} is not needed here anyway as they are covered individually but nuxt.config might be needed in some situations as mentioned here |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I do have this error. seemed so weird. |
I think I have found the error on my end: I removed the line and the error disappeared. |
this works to me, but what does it do? does this affect any thing? |
Thank you!!! |
Thats a good question: I guess tailwind cannot read CSS classes from |
thanks a lot |
Thanks! |
Removing that line did not do it for me. I stopped the app, removed the line, cleared my yarn cache and restarted. I still see the same error. |
Can you share some of your code ? Maybe there is something else causing this issue. |
How to bypass that error?
ERROR Importing directly from a nuxt.config file is not allowed. Instead, use runtime config or a module. [importing /nuxt.config.js from index.html]
The text was updated successfully, but these errors were encountered: