E6008 Import Errors

module-member-readonly

cannot assign to module member

When this occurs

Attempting to modify a module's exported member

Example error message

error[E6008]: cannot assign to module member 'math.PI'

How to fix

Module-level constants and exports cannot be reassigned from outside the module.

Related errors