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

Unable to load the plugin, this.nuxt is undefined #589

Closed
itwondersteam opened this issue Jul 3, 2023 · 1 comment
Closed

Unable to load the plugin, this.nuxt is undefined #589

itwondersteam opened this issue Jul 3, 2023 · 1 comment
Labels

Comments

@itwondersteam
Copy link

Version

@nuxtjs/sentry:
nuxt:

Sentry configuration

    modules: [
        '@nuxtjs/sentry',
    ],
    sentry: {
        dsn: process.env.NUXT_SENTRY_DSN
    },

Reproduction Link

repo

Steps to reproduce

pnpm add @nuxtjs/sentry

update config

export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: [
    '@nuxtjs/sentry'
  ],
  sentry: {
    dsn: process.env.NUXT_SENTRY_DSN, // Enter your project's DSN.
  }
})

What is Expected?

Able to install the sentry plugin successfully.

What is actually happening?

 ERROR  Cannot start nuxt:  Cannot read properties of undefined (reading 'nuxt')                                                                

  at normalizedModule (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxtjs/sentry/dist/module.mjs:54:19)
  at installModule (node_modules/.pnpm/@[email protected]/node_modules/@nuxt/kit/dist/index.mjs:2409:101)
  at async initNuxt (node_modules/.pnpm/[email protected]_@[email protected]/node_modules/nuxt/dist/index.mjs:3174:7)
  at async load (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/dev.mjs:204:9)
  at async Object.invoke (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/dev.mjs:248:5)
  at async _main (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/cli.mjs:48:20)
@rchl
Copy link
Member

rchl commented Jul 3, 2023

There is no Nuxt 3 version of this module. See #530

@rchl rchl closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants