help: Using onGlobalSetup from custom nuxt module
See original GitHub issueš What are you trying to do? Please describe. Iām currently developing a Nuxt module for the Villus GraphQL client and when trying to add support for @nuxtjs/composition-api I run into the following error (the call stack indicates this is coming from onGlobalSetup):
Cannot read property 'add' of undefined
š What have you tried? I tried mashing my keyboard with a wooden spoon to make it work but it didnāt work š
ā¹ļø Additional context
The plugin provided by the Nuxt module is transpiled from TypeScript.
@nuxtjs/composition-api
is listed both in peerDependencies and devDependencies on the module side of things.
Iām testing the module inside a local project using yarn link nuxt-villus
but I also tried releasing the module and using it as a normal dependency to no avail.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
@lewebsimple (Should be fixed in any case with v0.22.4.)
@lewebsimple Check what Node version you are using.