Skip to content
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

gsap extraPlugins configuration throws error #49

Closed
rowild opened this issue Jul 13, 2023 · 1 comment
Closed

gsap extraPlugins configuration throws error #49

rowild opened this issue Jul 13, 2023 · 1 comment

Comments

@rowild
Copy link

rowild commented Jul 13, 2023

Steps to Reproduce

  1. Run npx nuxi@latest init <my-app>
  2. npm i -D @hypernym/nuxt-gsap
  3. Configure gsap extraPlugins in nuxt.config.ts:
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { 
    enabled: true 
  },
  modules: [
    "nuxt-directus",
    "@hypernym/nuxt-gsap"
  ],
  gsap: {
    extraPlugins: {
      flip: true,
      scrollTrigger: true,
      observer: true,
      scrollTo: true
    }
  }
})

Current Behavior

This throws an error in the nuxt.config.ts:

Argument of type '{ devtools: { enabled: boolean; }; modules: string[]; gsap: { extraPlugins: { flip: boolean; scrollTrigger: boolean; observer: boolean; scrollTo: boolean; }; }; }' is not assignable to parameter of type 'InputConfig<NuxtConfig, ConfigLayerMeta>'.
  Object literal may only specify known properties, and 'gsap' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>

Expected Behavior

No error

Additional Details

Screenshot 2023-07-13 at 09 39 04

Version

{
  [...]
  "devDependencies": {
    "@hypernym/nuxt-gsap": "^2.2.2",
    "@nuxt/devtools": "latest",
    "@types/node": "^18.16.19",
    "nuxt": "^3.6.2"
  },
  "dependencies": {
    "gsap": "^3.12.2",
    "nuxt-directus": "^5.4.4"
  }
}
@rowild rowild changed the title gsap i gsap extraPlugins configuration throws error Jul 13, 2023
@rowild
Copy link
Author

rowild commented Jul 13, 2023

Moved to discussion.

@rowild rowild closed this as completed Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant