Modules errors
Browse documented modules errors, error messages, troubleshooting explanations, and fixes across products, tools, and platforms.
These pages help users compare related error messages, common causes, and how-to-fix steps across different tools that fail in the same way.
Modules errors are often searched as exact messages or short problem phrases, so this hub is designed to work as both a documentation browse surface and a search landing area.
The pages in this category focus on what the error means, what usually causes it, and which checks help narrow the issue fastest across different products and platforms.
SyntaxError: import declarations may only appear at top level of a module
JavaScript import declaration is not at the top level of a moduleJavaScript
ERR_PACKAGE_PATH_NOT_EXPORTEDNode.js blocked access to a package subpath that is not exportedNode.js
ERR_MODULE_NOT_FOUNDNode.js could not resolve the requested moduleNode.js
ERR_REQUIRE_ESMNode.js require tried to load an ES moduleNode.js