Is there any chance you could post a short video of the steps you take to reproduce this error. We can all help if you give us as much information as possible.
It sounds like what you are doing is starting a new project, creating a new page, then opening code view and placing a link in the head to your own custom framework files. Is this correct.