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.

5.0.0-4 and Nuxt Bridge: `The requested module '@nuxt/kit' does not provide an export named 'createResolver'`

See original GitHub issue

Version

@nuxtjs/tailwindcss: 5.0.0-4 nuxt-edge: 2.16.0-27358576.777a4b7f @nuxt/bridge: npm:@nuxt/bridge-edge@^3.0.0-27374259.21b664c

Reproduction Link

https://github.com/madebyfabian/nuxt-bridge-tailwind-module-5-issue-reprod

Steps to reproduce

  • Start Dev Server on the Reprod Repo

What is Expected?

Dev Server Working, Builds Working, No Errors

What is actually happening?

Hello there! I have an issue with the newest version of this package (5). After installing the package like in the Setup tutorial, I get this message when I try to build or start the dev server. Dev Server erroring:

 FATAL  The requested module '@nuxt/kit' does not provide an export named 'createResolver'

import { defineNuxtModule, resolvePath, resolveAlias, createResolver, requireModule, addTemplate, isNuxt2, installModule, addServerMiddleware } from '@nuxt/kit';
  ^^^^^^^^^^^^^^
  SyntaxError: The requested module '@nuxt/kit' does not provide an export named 'createResolver'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:181:5)
  at async Promise.all (index 0)
  at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
  at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
  at async ModuleContainer.addModule (node_modules/@nuxt/core-edge/dist/core.js:174:20)
  at async ModuleContainer.ready (node_modules/@nuxt/core-edge/dist/core.js:45:7)
  at async Nuxt._init (node_modules/@nuxt/core-edge/dist/core.js:346:5)

please check the Reprod Repo on how the project is set up. It’s basically a starter nuxt project with Bridge installed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
madebyfabiancommented, Apr 13, 2022

@DouglasCalora haven‘t managed to find a fix for it, moved away from wanting to use nuxt3/bridge in prod, since it’s really not ready to do so (but the nuxt website also warns that it‘s not ready, so yeah)

1reaction
danielroecommented, Feb 18, 2022

It looks like you just need to upgrade your version of kit. Could you try something like npm update @nuxt/kit?

Read more comments on GitHub >

github_iconTop Results From Across the Web

5.0.0-4 and Nuxt Bridge: `The requested module '@nuxt/kit ...
5.0.0-4 and Nuxt Bridge: The requested module '@nuxt/kit' does not provide an export named 'createResolver' #432.
Read more >
Common Issues - Nuxt Vite
Uncaught SyntaxError: The requested module ... does not provide an export named 'default'. Vite has an issue for pre-bundling dependencies ...
Read more >
How do I fix "the requested module does not provide an export ...
The reason it didn't work is that Vue provides a named export, whereas you are trying to import it as though it had...
Read more >
Modules - Migrate to Nuxt 3
We have prepared a Dedicated Guide for authoring Nuxt 3 ready modules using @nuxt/kit . Currently best migration path is to follow it...
Read more >
Nuxt.js - Pinia
For instance, you don't need to care about serialization nor XSS attacks. Pinia supports Nuxt Bridge and Nuxt 3. For bare Nuxt 2...
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