The warning can be ignored. If you check the file as a standalone, module is undefined. If this file is loaded within the framework the content is parsed and processed and module is valid