question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR Importing directly from a nuxt.config file is not allowed.

See original GitHub 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]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15

github_iconTop GitHub Comments

35reactions
lpknvcommented, Jul 4, 2022

I think I have found the error on my end: I had "./nuxt.config.{js,ts}", in my tailwind.config.js. You may wonder why it is there, and here is the reason.

I removed the line and the error disappeared.

13reactions
stale[bot]commented, Apr 18, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR Importing directly from a nuxt.config file is not allowed.
How to bypass that error? ERROR Importing directly from a nuxt.config file is not allowed. Instead, use runtime config or a module.
Read more >
Fix: Nuxt 3 nuxt.config file is not allowed - Tailwind CSS
How to fixed Importing directly from a nuxt. config file is not allowed. Instead, use runtime config or a module. [ importing /...
Read more >
Problems with importing and using json file in nuxt.config.js
If I have server-middleware. js file that I import into nuxt. config. js it works only on server side and not on client...
Read more >
Nuxt configuration file
Nuxt configuration file. By default, Nuxt is configured to cover most use cases. This default configuration can be overwritten with the nuxt.config.js file....
Read more >
Release Notes - Nuxt.js
The well-known problem is with firebase package that requires to manually install node-fetch dependency in your project. Reverting breaking changes. We ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found