Dependencies broken : SyntaxError: The requested module '@nuxt/kit' does not provide an export named 'addDevServerHandler'
See original GitHub issueVersion
@nuxtjs/tailwindcss: 5.0.4 nuxt: 2.15.8
Steps to reproduce
Moving from 5.0.3 to 5.0.4 give me the following error : SyntaxError: The requested module '@nuxt/kit' does not provide an export named 'addDevServerHandler'
It seems due to the @nuxt/kit dependencie update, in 5.04, from npm:@nuxt/kit-edge@latest
to ^3.0.0-rc.2
The strangest thing is that error come from the node_modules/@nuxtjs/tailwindcss/dist/module.mjs
file, which indeed import addDevServerHandler
from @nuxt/kit
and … declare these consts on top of the file :
const name = "@nuxtjs/tailwindcss";
const version = "5.1.2";
It’s like if the dist/module.mjs
which was packaged was the wrong one ; maybe you should just re-package the 5.0.4 ?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
SyntaxError: The requested module '@nuxt/kit' does not ...
Dependencies broken : SyntaxError: The requested module '@nuxt/kit' does not provide an export named 'addDevServerHandler' #487.
Read more >42 - Stack Overflow
Uncaught SyntaxError: The requested module './add.js' does not provide an export named 'add' ; See the export default ? So it's a default...
Read more >What am I missing about module exports? : r/learnjavascript
Uncaught SyntaxError: The requested module '/node_modules/axios/index.js' does not provide an export named 'default'.
Read more >Dependencies broken : SyntaxError: The requested module '@nuxt ...
Dependencies broken : SyntaxError: The requested module '@nuxt/kit' does not provide an export named 'addDevServerHandler' · Issue · Version · Steps to reproduce....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That workaround is indeed working 👍
adding an empty array named devServerHandlers to nuxt.config file will solve the issue.
devServerHandlers: [],