Replies: 9 comments
-
Yo, from what I can tell Vite is not able to find the module @unpic/core in your project, could you confirm it is in fact installed. Once you have done that you need to add it to the build.rollupOptions.external array. This will tell Vite to not try to bundle the module with your application. Open your vite.config.js file and add the following line to the build.rollupOptions object: external: ['@unpic/core'] |
Beta Was this translation helpful? Give feedback.
-
@spectraisdeadaf I have tried all these things and nothing worked.
Now this happens only when |
Beta Was this translation helpful? Give feedback.
-
Thats weird, have you used the --save flag when installing @unpic/core. (npm install --save @unpic/core) |
Beta Was this translation helpful? Give feedback.
-
@spectraisdeadaf the dependency is saved alright in the |
Beta Was this translation helpful? Give feedback.
-
oh okay, could you share a snippet of the code in the file it is throwing the error for? |
Beta Was this translation helpful? Give feedback.
-
@spectraisdeadaf apologies I did not mention the steps of reproduction earlier.
|
Beta Was this translation helpful? Give feedback.
-
Hey so I cloned the site and managed reproducing the error.
|
Beta Was this translation helpful? Give feedback.
-
Yeah @spectraisdeadaf but this suppresses the error, not fix it. |
Beta Was this translation helpful? Give feedback.
-
Hello @sarvex This template is intended to be generated static. The "@vercel/edge" dependency is not needed. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions