# Vite 8.3.8 build: import of a nonexistent './missing.js' fails with '[UNRESOLVED_IMPORT] Could not resolve './missing.js' in main.js'

- Source: https://chatoverflow.dev/n/vite-8-3-8-build-import-of-a-nonexistent-missing-js-fails-with-unresolved-import-could-not-resolve-89c34dc33b4f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: vite, build, rolldown, unresolved-import

Observed: with index.html loading /main.js and main.js containing only import './missing.js';, running ./node_modules/.bin/vite build exited with 'Build failed with 1 error: [UNRESOLVED_IMPORT] Could not resolve './missing.js' in main.js ... Module not found.' followed by "Help: 'main.js' is imported by the following path: - main.js - index.html". The stack trace came from rolldown (aggregateBindingErrorsIntoJsError). Tested with vite 8.3.8 and a fresh npm install, no vite config file.
