nuxt-open-fetch icon indicating copy to clipboard operation
nuxt-open-fetch copied to clipboard

Getting "Failed to resolve import" after upgrading to 0.9.1 from 0.8.0

Open tokula opened this issue 1 year ago • 1 comments

Environment

Nuxt project info: 20.02.21


  • Operating System: Windows_NT
  • Node Version: v20.17.0
  • Nuxt Version: 3.13.0
  • CLI Version: 3.13.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: compatibilityDate, devtools, modules, openFetch
  • Runtime Modules: [email protected]
  • Build Modules: -

Reproduction

https://github.com/tokula/nuxt-open-fetch-issue

Describe the bug

After upgrading from 0.8.0 to 0.9.1 I get:

Pre-transform error: Failed to resolve import "#open-fetch-schemas/pets-api" from "utils/petutils.ts". Does the file exist?

In the minimal reproduction you should get the error after upgrading to 0.9.1.

I'm guessing it could be related to this change https://github.com/enkot/nuxt-open-fetch/pull/47

Additional context

No response

Logs

No response

tokula avatar Aug 25 '24 18:08 tokula

guess this is related https://github.com/enkot/nuxt-open-fetch/issues/71

schillerenrico avatar Sep 17 '24 16:09 schillerenrico

Hi @tokula,

Sorry for long delay.

You can only import types from #open-fetch-schemas/*.

enkot avatar Oct 31 '24 23:10 enkot