alitur
alitur
NNuxt
Created by alitur on 5/15/2024 in #❓・help
i18n spec tests fail
Hello. I am trying to reproduce a bug in the i18n code but the spec tests fail like this:
FAIL specs/basic_usage.spec.ts > basic usage
FAIL specs/experimental/switch_locale_path_link_ssr.spec.ts [ specs/experimental/switch_locale_path_link_ssr.spec.ts ]
Error: Cannot find module 'C:/Users/juho.rutila/devel/ngh/i18n/specs/fixtures/basic_usage/@nuxtjs/i18n'
Require stack:
- C:\Users\juho.rutila\devel\ngh\i18n\index.js
❯ Function._resolve [as resolve] node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:251148
❯ resolveModule node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2210:29
❯ requireModule
...
FAIL specs/basic_usage.spec.ts > basic usage
FAIL specs/experimental/switch_locale_path_link_ssr.spec.ts [ specs/experimental/switch_locale_path_link_ssr.spec.ts ]
Error: Cannot find module 'C:/Users/juho.rutila/devel/ngh/i18n/specs/fixtures/basic_usage/@nuxtjs/i18n'
Require stack:
- C:\Users\juho.rutila\devel\ngh\i18n\index.js
❯ Function._resolve [as resolve] node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:251148
❯ resolveModule node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2210:29
❯ requireModule
...
I ran the pnpm i but it causes following removes in pnpm-lock.yaml file.
// Following lines are removed after pnpm i
specs/fixtures/locale_codes:
devDependencies:
'@nuxtjs/i18n':
specifier: link:../../..
version: link:../../..
nuxt:
specifier: ^3.11.1
version: 3.11.1...

specs/fixtures/no_ssr:
devDependencies:
'@nuxtjs/i18n':
specifier: link:../../..
version: link:../../..
nuxt:
specifier: ^3.11.1
version: 3.11.1...
// Following lines are removed after pnpm i
specs/fixtures/locale_codes:
devDependencies:
'@nuxtjs/i18n':
specifier: link:../../..
version: link:../../..
nuxt:
specifier: ^3.11.1
version: 3.11.1...

specs/fixtures/no_ssr:
devDependencies:
'@nuxtjs/i18n':
specifier: link:../../..
version: link:../../..
nuxt:
specifier: ^3.11.1
version: 3.11.1...
I'm a little new with pnpm so should I do something else, too? Contribution document doesn't help.
1 replies