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:
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?4 Replies
Hmm apparently there are some edge case issues with npm link, the recommended solution on the module author guide is to use
npm pack
https://nuxt.com/docs/guide/going-further/modules#manual-qa-with-playground-and-externallyNuxt
Module Author Guide · Nuxt Advanced
Learn how to create a Nuxt Module to integrate, enhance or extend any Nuxt applications.
if it's just for testing you can probably do something like
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thanks! Will try later