N
Nuxt5mo ago
Steisky

The requested module does not provide an export named ...

Hi, I have types in types directory in my project. With them I also have corresponding util functions (to create empty objects of that type). Hovewer when I go to page that imports the types (in this instance page test I get 500 with the following message
The requested module '/_nuxt/types/quiz/question/QuizQuestion.ts' does not provide an export named 'toApiQuizQuestion'
The requested module '/_nuxt/types/quiz/question/QuizQuestion.ts' does not provide an export named 'toApiQuizQuestion'
This happens on the first load of the app. If I rename the export, save, then rename it back it is picked up by nuxt. Does anyone have a tip what could be wrong? Here is the repo with reproduction. Just start the app and navigate to the test page https://github.com/steisky/nuxt3-reproduction
GitHub
GitHub - steisky/nuxt3-reproduction
Contribute to steisky/nuxt3-reproduction development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server