code-forensics icon indicating copy to clipboard operation
code-forensics copied to clipboard

"window.System.config is not a function" error when accessing http://localhost:3000/index.html

Open thealexandrelara opened this issue 5 years ago • 2 comments

I'm getting an error on console when I execute webserver and I try to access http://localhost:3000/index.html

image

image

My gulp version is the following:

CLI version: 2.3.0
Local version: 4.0.2

My gulpfile.js was configured with the minimal configuration:

require('code-forensics').configure(
  {
    repository: {
      rootPath: "./src",
    }
  }
)

Do you know what could possible be causing this?

thealexandrelara avatar Feb 21 '21 18:02 thealexandrelara

Your browser is not loading the systemjs library:

  • Check the systemjs package is installed (e.g. npm list systemjs) and it has the right version: 0.21.6
  • Check your browser is loading it from the web server (it should be from index.html)

In any case, it could be worth deleting the entire node_modules folder and re-installing

smontanari avatar Mar 05 '21 22:03 smontanari

@thealexandrelara, let me know if my suggestions helped you move forward or not. Otherwise I will be closing this issue.

smontanari avatar May 02 '21 23:05 smontanari