Skip to content

[vite] Couldn't resolve host name (Could not resolve host: sentry.io) #1843

Closed
@darthf1

Description

@darthf1

Hi!,

Whenever I update my deps in package.json, and build my Nuxt app, I get the following error:

error: API request failed  caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io)

This is happening for me since 2 or 3 weeks. Whenever I rollback the changes, everythings works again.

Not sure how to continue / how to debug this any further.

Environment

nodejs 21.2.0
pnpm 8.11.0

package.json

{
    "@sentry/integrations": "7.81.1",
    "@sentry/types": "7.81.1",
    "@sentry/vite-plugin": "2.10.1",
    "@sentry/vue": "7.81.1",
    "nuxt": "3.8.2",
    "vue": "3.3.9",
}

.nmprc

audit=false
loglevel=error
fund=false
node-linker=hoisted
package-import-method=copy
progress=false
shamefully-hoist=true
strict-peer-dependencies=true
update-notifier=false

nuxt.config.ts

import { sentryVitePlugin } from '@sentry/vite-plugin'
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
  ....
  vite: {
    plugins: [
      process.env.NUXT_PUBLIC_SENTRY_ENABLED === 'true'
        ? sentryVitePlugin({
            authToken: process.env.NUXT_PUBLIC_SENTRY_AUTH_TOKEN,
            debug: true,
            org: process.env.NUXT_PUBLIC_SENTRY_ORG,
            project: process.env.NUXT_PUBLIC_SENTRY_PROJECT,
            release: {
              name: process.env.NUXT_PUBLIC_SENTRY_RELEASE,
            },
            sourcemaps: {
              assets: ['./.nuxt/dist/client/**'],
              filesToDeleteAfterUpload: ['.nuxt/dist/**/*.js.map'],
            },
            telemetry: false,
          })
        : {},
    ],
  },
})

Full build error log during Nuxt build
A lockfile from a week ago that errors (with less recent deps as stated above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions