-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to install module #301
Comments
testing this in another environment, I can reproduce the problem. Also, when trying to add the module via nuxi add I get the same error
|
testing whether undoing the non-major dep updates before release fixes it, by releasing |
ok, I was able to workaround by it with this
and then run the release process. So something broke with the upgrades, probably some files are not included. Let's fix this. For reference, this is the output of a working publish process
|
not working example
|
v2.2.2 publishing I got working, but now a new problem: It errors out with "useHead is not defined" all the time. weirdly in the playgroudn it works just fine. Trying to fix by adding an import for it. |
that helped. but next error:
weirdly the nuxt playground has not issue like this. so next try is to import defineComponent also |
v2.2.4 finally works! still, the problem of this issue (module loading) is relevant and releases are broken without the noted workaround of using packages of last 2.1.* release for publishing. So that needs fixing |
can you pinpoint which dependency update is the issue? |
@fago Yes, you need to explicitly import stuff for a published Nuxt module. Otherwise it errors out (is not defined) when using the module in a project. With Nuxt playground, auto importing works, so no errors there. Quote from Nuxt docs:
source: Module Author Guide |
I have stumbled across a random issue. One out of three projects with the same code set give me a
However as soon as we revert back to the useHead
Everything is fine again. When I run console logs I get:
|
after update the demo, it fails to load the module:
see drunomics/lupus-decoupled-nuxt3-demo#68 + the launch link there
Temporary for releases
The text was updated successfully, but these errors were encountered: