Pular para o conteúdo

MODULE_NOT_ALLOWED: Import not allowed

Este conteúdo não está disponível em sua língua ainda.

Severity Fault Stage
error customer (the source package) compile

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).

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.