MODULE_NOT_FOUND: Imported file not found
| Severity | Source of issue | Stage |
|---|---|---|
| error | Component source | compile |
What it means
Section titled “What it means”A relative import points at a file that is not in the source package, an import names an npm package that is not installed in the project (not in package.json and package-lock.json), or a package subpath that the package does not export. Paths are relative to the importing file and case-sensitive.
How to fix
Section titled “How to fix”For a file, check the path and its letter case against the files in src/. For an npm package, run npm install <package> in the component's folder (the one with its src/, which needs its own package.json) and publish again.