Skip to content

HAMUR_E4201: A Svelte <style> block needs the @hamur/css module

A Svelte <style> block needs the @hamur/css module. Error HAMUR_E4201 belongs to @hamur/adapter-svelte (4201 – 4300).

Message

text
HAMUR_E4201 <style lang="<lang>"> needs the @hamur/css module: install @hamur/css and <PREPROCESSED> and add "@hamur/css" to modules

Cause

A Svelte <style lang="…"> needs a preprocessor, and @hamur/css is not in modules.

Fix

Install @hamur/css and the preprocessor the message names, and add "@hamur/css" to modules.