i18n: Dependency not found klona/full

Version

nuxt-i18n: 6.16.0 nuxt: 2.14.12

Nuxt configuration

mode:

  • universal
  • spa

Steps to reproduce

Upgrade or install nuxt-i18n.

What is Expected?

The lib is expected to work.

What is actually happening?

It doesn’t… (See the issue’s title)

This dependency was not found:                                                                
* klona/full in ./.nuxt/nuxt-i18n/plugin.main.js
To install it, you can run: npm install --save klona/full

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 22

Commits related to this issue

Most upvoted comments

Hi @rchl. You can resolve full path of klona on behalf of module for exact version that requires:

nuxt.options.alias['klona'] = require.resolve('klona/lite')
// Alt: nuxt.options.alias['~i18n-klona'] = require.resolve('klona/lite')

For a longer answer, I’m compiling runtime instead of emitting as plugin template for image and auth modules and adding this pattern with new module template and nuxt/kit. This resolves implicit dependency issues as well as making runtime lintable/typed.