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
So everything works fine in dev, static images, and libraries js also static working fine. In production gives errors.
for example p5 library not found, when you go in dev it loads and works fine...i had to install p2 library via npm install p5
I think is only because is the first image, the rest images of icons are not whown properly...
Example with preview build:
Exmaple in dev:
Also i added some kind of configurations to let Vite show files and folders outside the public directory:
The main problem is that Vite is not working well with setup of files outside the folder public.
Id like as a educational purpose to maintein the structure of the project, and not creating a public folder and move libraries of js and images to it...
Also tried tweking vite.config.js and also adding a new plugin-- viteStaticPlugin
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Hello @ejgutierrez74. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
My structure of project:
So everything works fine in dev, static images, and libraries js also static working fine. In production gives errors.
for example p5 library not found, when you go in dev it loads and works fine...i had to install p2 library via npm install p5
But im facing this error:
I think is only because is the first image, the rest images of icons are not whown properly...
Example with preview build:
Exmaple in dev:
Also i added some kind of configurations to let Vite show files and folders outside the public directory:
The main problem is that Vite is not working well with setup of files outside the folder public.
Id like as a educational purpose to maintein the structure of the project, and not creating a public folder and move libraries of js and images to it...
Also tried tweking vite.config.js and also adding a new plugin-- viteStaticPlugin
Reproduction
meu-pacman-chatbot-pzn3moxhz-ejgutierrez74s-projects.vercel.app
Steps to reproduce
Run pnpm build and pnpm serve
Images and libraries outside the public folder doenst shown
Links and code should be ok as in dev mode is working all fine.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: