Troubleshooting
Run the standard diagnostic sequence
node --version
npm install
resux prepare
resux check --json
resux inspect build --json
resux build --debug --trace-buildNode must satisfy the framework engine requirement.
Unsupported template or SFC syntax
Symptoms:
ResuxCompileError- unknown directive errors
- unsupported style language/module/src errors
- unsafe handler capture errors
Actions:
- Compare the component with Template Syntax.
- Move browser-library behavior into a client enhancement or Vue island.
- Keep normal component styles as plain CSS.
- Reduce handler captures to serializable or browser-safe values.
A handler works on SSR but not after clicking
Run:
resux dev --trace-resume
resux inspect bundles --jsonCheck that the handler is discoverable, its imports are browser-compatible, and the state it uses was serialized.
A package appears in the wrong bundle
resux inspect packages --jsonConfigure packages.mode, clientOnly, serverOnly, external, noExternal, aliases, or a progressive adapter.
Internal API fetch fails during SSR
Set a public app origin or use $fetch:
runtimeConfig: {
public: { appOrigin: 'https://example.com' }
}useFetch access is incorrect
useFetch returns an async-data resource:
const result = await useFetch('/api/status')
console.log(result.data.value)
console.log(result.pending.value)
console.log(result.error.value)Image transforms return 501
Verify that sharp is installed and loadable in the server runtime. Check the requested format and source response.
Video transforms return 501
Install ffmpeg or set:
export RESUX_FFMPEG_PATH=/absolute/path/to/ffmpegProduction start or deploy rejects the Halal report
Set RESUX_HALAL_REPORT_SIGNING_SECRET before the production build and use the same secret during production verification. Rebuild after changing the key.
Review-required project cannot build
Generate the request:
resux halal submit-reviewThe current framework does not send it automatically. Obtain a valid signed approval file, place it at the project root, then run:
resux halal verify-reviewGenerated files are missing
resux check --fix
resux prepareDo not hand-edit .resux output.
Dev changes are not visible
Check terminal build errors, then use --trace-build. Restart only after resolving syntax or watcher exclusions. Generated and dependency directories are intentionally ignored by the source watcher.
Route does not match
resux inspect routes
resux dev --trace-routesVerify file naming, dynamic segment placement, middleware result, localized route strategy, and route-rule redirects.