device icon indicating copy to clipboard operation
device copied to clipboard

Fail with Nuxt 3 RC 9

Open agracia-foticos opened this issue 3 years ago • 1 comments

Hello,

When upgrading to version Nuxt 3 RC 9 the component fails

agracia-foticos avatar Sep 06 '22 06:09 agracia-foticos

WARN Module device-module is disabled due to incompatibility issues: 13:15:46

  • [nuxt] Nuxt version ^3.0.0 || ^2.16.0 is required but currently using 3.0.0-rc.9

agracia-foticos avatar Sep 09 '22 11:09 agracia-foticos

This module shouldn't be compatible with Nuxt 3, you can use my port in the meanwhile with npm install Redemption198/device-module or yarn add Redemption198/device-module

Redemption198 avatar Oct 06 '22 15:10 Redemption198

I have updated to RC 13 version and it is throwing me an error.

Nuxi 3.0.0-rc.13 Nuxt 3.0.0-rc.13 with Nitro 0.6.1

Local: http://localhost:3000/ Network: http://172.17.0.2:3000/

ℹ Using default Tailwind CSS file from runtime/tailwind.css

ERROR Cannot start nuxt: Cannot find module '/var/www/project/node_modules/@nuxtjs/device/dist/module.cjs'

at createEsmNotFoundErr (node:internal/modules/cjs/loader:1012:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1005:15) at resolveExports (node:internal/modules/cjs/loader:522:14) at Function.Module._findPath (node:internal/modules/cjs/loader:562:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:971:27) at Function.resolve (node:internal/modules/cjs/helpers:109:19) at Function._resolve [as resolve] (node_modules/jiti/dist/jiti.js:1:243302) at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:240:29) at normalizeModule (node_modules/@nuxt/kit/dist/index.mjs:445:18) at installModule (node_modules/@nuxt/kit/dist/index.mjs:426:47)

image

agracia-foticos avatar Nov 08 '22 09:11 agracia-foticos

I have updated to RC 13 version and it is throwing me an error.

Nuxi 3.0.0-rc.13 Nuxt 3.0.0-rc.13 with Nitro 0.6.1

Local: http://localhost:3000/ Network: http://172.17.0.2:3000/

information_source Using default Tailwind CSS file from runtime/tailwind.css

ERROR Cannot start nuxt: Cannot find module '/var/www/project/node_modules/@nuxtjs/device/dist/module.cjs'

at createEsmNotFoundErr (node:internal/modules/cjs/loader:1012:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1005:15) at resolveExports (node:internal/modules/cjs/loader:522:14) at Function.Module._findPath (node:internal/modules/cjs/loader:562:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:971:27) at Function.resolve (node:internal/modules/cjs/helpers:109:19) at Function._resolve [as resolve] (node_modules/jiti/dist/jiti.js:1:243302) at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:240:29) at normalizeModule (node_modules/@nuxt/kit/dist/index.mjs:445:18) at installModule (node_modules/@nuxt/kit/dist/index.mjs:426:47)

image

I removed the dist folder from the repository and I'm waiting for someone to review and merge the PR, in the meanwhile you can install the module from an older commit that has the dist folder by doing yarn add Redemption198/device-module#2136ea0 or npm install Redemption198/device-module#2136ea0

Redemption198 avatar Nov 08 '22 09:11 Redemption198

solved!

agracia-foticos avatar Nov 18 '22 08:11 agracia-foticos