NuxtN
Nuxt3y ago
9 replies
davestewart

Unable to develop an npm linked module (error: "fails to load url")

Hello.

I've just set up a starter module repo using the starter template code and have NPM linked it from a Nuxt project.

However, when I configure Nuxt to see the module, and start the server, I get the following error:

ERROR  Failed to load url /@fs/Volumes/Data/Work/Projects/nuxt-landkit/dist/runtime/plugin.mjs 
(resolved id: /Volumes/Data/Work/Projects/nuxt-landkit/dist/runtime/plugin.mjs) 
in virtual:nuxt:/Volumes/Data/Work/Projects/controlspace-site/.nuxt/plugins/client.mjs. 

Does the file exist?


I have run the prepare and build scripts in the module repo, and I can see the files exist.

However, if I copy/paste the code to my app's modules folder, it works first time.

Is it that Nuxt / Nitro doesn't see them, or is there something else at play?
Was this page helpful?