Skip to content

UNSAFE_DYNAMIC_IMPORT: Dynamic import in the component

Severity Fault Stage
error customer (the source package) build output

The bundle keeps an import() the builder could not resolve at build time, so at run time it would load a module from any URL into the host page (rule dynamic-import).

Use static imports (import x from “./file”) of files in the package or allowlisted packages.