You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a project using nuxt, vue, tailwinds, prisma and mongoDB, I just decided to add NaiveUI since I have a Log In page and i wanted to provide input validation and feedback and I like the naiveUI input components.
My problem is NaiveUI works fine locally, but when I deploy it to Vercel I get the following log in the platform:
[nuxt] [request error] [unhandled] [500] Named export 'VResizeObserver' not found. The requested module 'vueuc' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'vueuc';
const { VResizeObserver } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async ./chunks/routes/renderer.mjs:139:24
at async ./chunks/routes/renderer.mjs:241:64
at async Object.handler (./chunks/routes/renderer.mjs:19:22)
at async Object.handler (./chunks/runtime.mjs:3037:19)
at async toNodeHandle (./chunks/runtime.mjs:3303:7)
at async Server. (/opt/rust/nodejs.js:7:3526)
This problem has been happening since I installed naiveUI in my project
Example
No response
Steps to Reproduce
Just intalled naiveUI in my local environment and once I pushed it to vercel I got the following log:
[nuxt] [request error] [unhandled] [500] Named export 'VResizeObserver' not found. The requested module 'vueuc' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'vueuc';
const { VResizeObserver } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async ./chunks/routes/renderer.mjs:139:24
at async ./chunks/routes/renderer.mjs:241:64
at async Object.handler (./chunks/routes/renderer.mjs:19:22)
at async Object.handler (./chunks/runtime.mjs:3037:19)
at async toNodeHandle (./chunks/runtime.mjs:3303:7)
at async Server. (/opt/rust/nodejs.js:7:3526)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I am creating a project using nuxt, vue, tailwinds, prisma and mongoDB, I just decided to add NaiveUI since I have a Log In page and i wanted to provide input validation and feedback and I like the naiveUI input components.
My problem is NaiveUI works fine locally, but when I deploy it to Vercel I get the following log in the platform:
This problem has been happening since I installed naiveUI in my project
Example
No response
Steps to Reproduce
Just intalled naiveUI in my local environment and once I pushed it to vercel I got the following log:
Beta Was this translation helpful? Give feedback.
All reactions