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
Hi
I have a trouble with build
I use vue version 3.5.13, vite 6.0.7 and latest primevue 4.2.5, also primevue auto import
When i build my project local - its all completed, dev starts, but also when i build it to server - failed with error [commonjs--resolver] Failed to resolve entry for package "primevue". The package may have incorrect main/module/exports specified in its package.json.
I have seen that i need to add this 'primevue': path.resolve(__dirname, './node_modules/primevue') to my vite config, then build was passed, but input, button and other styles on server are defaults, as if it doesn't see the Primevue package
The error appeared after a global update of packages on the project.
Initially, the project was built on the primevue 3+ version, the vue version was also slightly lower, like the vite version (vite - 5.4.0, vue - 3.4.21). I've already tried rolling back the vite and vue versions, but it doesn't help.
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
-
Hi
I have a trouble with build
I use vue version 3.5.13, vite 6.0.7 and latest primevue 4.2.5, also primevue auto import
When i build my project local - its all completed, dev starts, but also when i build it to server - failed with error [commonjs--resolver] Failed to resolve entry for package "primevue". The package may have incorrect main/module/exports specified in its package.json.
I have seen that i need to add this 'primevue': path.resolve(__dirname, './node_modules/primevue') to my vite config, then build was passed, but input, button and other styles on server are defaults, as if it doesn't see the Primevue package
The error appeared after a global update of packages on the project.
Initially, the project was built on the primevue 3+ version, the vue version was also slightly lower, like the vite version (vite - 5.4.0, vue - 3.4.21). I've already tried rolling back the vite and vue versions, but it doesn't help.
my package json
my vite config
Beta Was this translation helpful? Give feedback.
All reactions