nuxt / eslint

Collection of ESLint-related packages for Nuxt
https://eslint.nuxt.com
MIT License
515 stars 65 forks source link

Nuxt Deployment on DigitalOcean // ERROR Cannot find module '/workspace/@nuxt/eslint' #448

Closed simonmaass closed 2 weeks ago

simonmaass commented 2 weeks ago

Environment

image

Package

@nuxt/eslint

Reproduction

Deploy app as described in docs to digitalocean with SERVER_PRESET=digital-ocean

Describe the bug

Get the following error in deployment:

[2024-06-14 14:17:10] │ ERROR Error while requiring module @nuxt/eslint: Error: Cannot find module '/workspace/@nuxt/eslint' [2024-06-14 14:17:10] │ Require stack: [2024-06-14 14:17:10] │ - /workspace/index.js [2024-06-14 14:17:10] │ [2024-06-14 14:17:10] │ [2024-06-14 14:17:10] │ ERROR Cannot find module '/workspace/@nuxt/eslint' [2024-06-14 14:17:10] │ Require stack: [2024-06-14 14:17:10] │ - /workspace/index.js [2024-06-14 14:17:10] │ [2024-06-14 14:17:10] │ Require stack: [2024-06-14 14:17:10] │ - index.js [2024-06-14 14:17:10] │ at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)

Additional context

In nuxt.config.ts: modules: ['@nuxt/eslint']

in package.json: "devDependencies": { "@nuxt/eslint": "^0.3" }

Logs

image
antfu commented 2 weeks ago

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required