Encountering a TypeScript error in my IntelliJ-Idea 2017.1.1 IDE
I have enabled JavaScript, NodeJS, and TypeScript Compiler.
I have exhausted all solutions but the issue persists, perhaps I am missing something.
Error: Initialization error (typescript). Cannot read property 'createHash of undefined
Is there anyone who can assist me in resolving this?
https://i.stack.imgur.com/qTjV6.png
https://i.stack.imgur.com/AmtoJ.png
package.json
{
"name": "TempPractice",
"version": "0.0.1",
"description": "First Angular App",
"license": "MIT",
"repository": {
"type": "git",
"url": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d8bfb1ac98bfb1acb0adbaf6bbb7b5">[email protected]</a>:angularjs-de/angularjs-typescript-seed.git"
},
"main": "app/app.ts",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"typings": "typings",
"postinstall": "typings install",
"update-deps": "npm update",
"postupdate-deps": "bower update",
"prestart": "npm install",
"start": "http-server -a localhost -p 8000 -c-1 ./app",
"pretest": "npm install",
"test": "karma start karma.conf.js",
"test-single-run": "karma start karma.conf.js --single-run",
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver",
"protractor": "protractor e2e-tests/protractor.conf.js",
"update-index-async": "node -e \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/bower_components/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=bower_components/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\""
},
"dependencies": {
"@angular/common": "^4.4.4",
"@angular/compiler": "^4.4.4",
...
"zone.js": "^0.8.18"
}
}
tsconfig.json
{
"compilerOptions": {
"module": "system",
...
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
},
"compileOnSave": false
}
typings.json
{
"ambientDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd"
}
}