Error Reference Hub
NV1005Compiler
Module Not Found
The compiler cannot find the requested standard library module or local source file.
Why this error occurs
Typo in the imported module name, missing relative path, importing a non-existent file, or omitting file extension in local imports.
Incorrect Code
// incorrect: misspelled standard library or non-existent local file
import std.matth
import "./components/missing_file.nv"Corrected Code
// corrected: correct standard library path or existing local module
import std.math
import "./components/utils.nv"
print(math.sqrt(16.0))Troubleshooting & Remediation
- 1Verify standard module names (e.g. std.io, std.fs, std.math, std.net, std.json, std.time).
- 2Ensure local imported files exist relative to the importing file's directory.
- 3If the module is a third-party package, check if it is declared in nextviper.toml and run 'nextviper install'.
Relevant CLI Commands
$ nextviper check$ nextviper install$ nextviper list
