Error while importing HyperFormula

Tags: #<Tag:0x00007efc6d1871d8> #<Tag:0x00007efc6d186eb8>

Hi !

I’m new to this tool.
Handsontable works fine but I’m having trouble with HyperFormula.
I’m using :
@handsontable/vue3”: “^14.4.0”,
“hyperformula”: “^2.7.0”,
“nuxt”: “^3.12.2”,
“vue”: “^3.4.29”

Could someone help me please ?

When I import HyperFormula like this in a component, it fails instantly :
import { HyperFormula } from ‘hyperformula’;

  ERROR  Cannot convert undefined or null to object

at Function.values ()
at TranslationPackage.checkErrors (node_modules.pnpm\hyperformula@2.7.0\node_modules\hyperformula\es\i18n\TranslationPackage.js:90:30)
at new TranslationPackage (node_modules.pnpm\hyperformula@2.7.0\node_modules\hyperformula\es\i18n\TranslationPackage.js:20:10)
at Module.buildTranslationPackage (node_modules.pnpm\hyperformula@2.7.0\node_modules\hyperformula\es\i18n\TranslationPackage.js:107:10)
at HyperFormula.registerLanguage (node_modules.pnpm\hyperformula@2.7.0\node_modules\hyperformula\es\HyperFormula.js:280:73)
at node_modules.pnpm\hyperformula@2.7.0\node_modules\hyperformula\es\index.js:76:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ViteNodeRunner.runModule (/C:/Users/Luis/Desktop/hiboo%20custom%20excel/front/node_modules/.pnpm/vite-node@1.6.0_@types+node@20.14.6_sass@1.77.6_terser@5.31.1/node_modules/vite-node/dist/client.mjs:362:5)
at async ViteNodeRunner.directRequest (/C:/Users/Luis/Desktop/hiboo%20custom%20excel/front/node_modules/.pnpm/vite-node@1.6.0_@types+node@20.14.6_sass@1.77.6_terser@5.31.1/node_modules/vite-node/dist/client.mjs:346:5)
at async ViteNodeRunner.cachedRequest (/C:/Users/Luis/Desktop/hiboo%20custom%20excel/front/node_modules/.pnpm/vite-node@1.6.0_@types+node@20.14.6_sass@1.77.6_terser@5.31.1/node_modules/vite-node/dist/client.mjs:189:14)

Hi @luiszu7779

I think that we had a chat on emails about NuxtJS and HyperFormula. But if not. Please check this demo https://stackblitz.com/edit/nuxt-starter-7hvjkp?file=components%2FGrid.vue,package.json,data.ts and let me know if it works for you.