Hi everyone,
I’m running into some unexpected issues with my Vue frontend apps in Frappe, and I’m not sure whether this is a new bug or something that recently changed under the hood.
[vite-plugin-pwa:build] There was an error during the build:
src/socket.js (2:9): "socketio_port" is not exported by "../../../sites/common_site_config.json", imported by "src/socket.js".
(Note that you need @rollup/plugin-json to import JSON files)
Additionally, handling the error in the 'buildEnd' hook caused the following error:
src/socket.js (2:9): "socketio_port" is not exported by "../../../sites/common_site_config.json", imported by "src/socket.js".
(Note that you need @rollup/plugin-json to import JSON files)
file: /home/frappe/frappe-bench/apps/hrms/frontend/src/socket.js:2:9
1: import { io } from "socket.io-client"
2: import { socketio_port } from "../../../../sites/common_site_config.json"
^
3:
4: import { getCachedListResource } from "frappe-ui/src/resources/listResource"
On top of that, other Vue apps of mine are also failing, showing errors like:
LoadingIndicator is not exported by 'frappe-ui'
Again, no versions have changed — the apps were working fine, and simply rebuilding them caused these errors to appear out of nowhere.
So my questions are:
-
Has anyone else started seeing these issues recently?
-
Did something change in the Frappe build pipeline, Vite config, or frappe-ui package behavior?
-
Is this a known bug or regression?
Any insights or confirmations would be really helpful. Thanks!