[UNLOADABLE_DEPENDENCY] Error: Could not load node_modules/flexmonster/flexmonster.full.js
╭─[ node_modules/vue-flexmonster/vue3/index.js:1:57 ]
│
1 │ 'use strict';var vue=require('vue'),Flexmonster=require('flexmonster');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var Flexmonster__default=/*#__PURE__*/_interopDefaultLegacy(Flexmonster);function ownKeys(object, enumerableOnly) {
│ ──────┬──────
│ ╰──────── stream did not contain valid UTF-8
I am not sure why this started happening. but when we do a fresh clone of our project and try to build the vue3/nuxt4/vite project, we are getting this error.
Any idea what is happening?
Hello, Robbie!
Thank you for reaching out to us.
We have checked the described behavior using our sample project with Nuxt but could not reproduce the case on our side. To help us investigate further, please share the specific configurations under which the case can be reproduced in the following project: https://github.com/flexmonster/pivot-vue.
Looking forward to hearing your response.
Kind regards,
Solomiia
Apologies. We can close this. It appears the situation was resolved by using an existing package-lock.json from one of our other devs. The packages must have got munged up during a nuxt4 upgrade.
Hello, Robbie!
Thank you for letting us know.
We are happy that everything works well now.
Feel free to reach out to us in case of any other questions.
Kind regards,
Solomiia