L1203 - Parameterized modules are no longer supported
Error
-module(my_module, [Param]).
%% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: parameterized modules are no longer supported
Explanation
This error occurs when you attempt to use parameterized modules, which were an experimental feature in older versions of Erlang but are no longer supported.
Parameterized modules allowed you to create modules with parameters, but this feature has been removed from modern Erlang/OTP versions.
To fix this error:
- Remove the parameter list from the
-module
directive - Refactor your code to use regular modules with explicit parameter passing
- Consider using records or maps to group related data instead
%% Instead of parameterized modules, use regular modules
-module(my_module).
%% Pass parameters explicitly to functions
init(Param) ->
%% Initialize with parameter
{ok, Param}.