MODULE_NOT_ALLOWED: Import not allowed
| Severity | Fault | Stage |
|---|---|---|
| error | customer (the source package) | compile |
What it means
Section titled “What it means”An import leaves the source package or reaches something a component cannot use: an absolute path, a .. that climbs out of the package, a Node built-in (node:fs), a URL, a CSS url() asset, a build-only or test-only module (@taggor/component/build, @taggor/component/testing) or the page runtime (@taggor/runtime).
How to fix
Section titled “How to fix”Components run in the browser and see only their own files and the allowed packages: import files inside src/ with relative paths and use browser APIs instead of Node built-ins.