NITE1001: Module not listed in entries
| Code | Event ID | Level | Message |
|---|---|---|---|
NITE1001 |
1001 | Warning | '{Module}' is not listed in "entries" in nite.json, so production builds will not include it |
A page loaded a module with <nite-module src="..."> (or INiteAssets.GetModuleAsync) that is
not in the entries list in nite.json.
In development this works: the dev server compiles any module in the client root on request. A
production build only builds islands, index.html and the modules listed in entries, so the
same page in production fails with "Module '...' is not in the Nite build".
How to fix it
Add the module to entries in nite.json, as a path relative to the client root:
{
"entries": ["pages/checkout.ts"]
}
NiteFx logs this once per module while the app runs.
Source: NITE1001.md