angular2base icon indicating copy to clipboard operation
angular2base copied to clipboard

ERROR in ./src/app.ts

Open TheoMer opened this issue 9 years ago • 4 comments

OS: Windows 10 Pro NPM ver: 3.5.3

Hi,

So, the following error message is being generated when processing the following command, 'npm run build':

'ERROR in ./src/app.ts Module build failed: TypeError: compiler.parseConfigFile is not a function at ensureTypeScriptInstance (C:\Users\Theo\Documents\Projects\angular2base-master\node_modules\ts-loader\index.js:147:38) at Object.loader (C:\Users\Theo\Documents\Projects\angular2base-master\node_modules\ts-loader\index.js:365:14)'

What is the issue here?

TheoMer avatar Jan 28 '16 18:01 TheoMer

I have the same issue, let me know if you manage to fix it or not.

JoshWilliams92 avatar Jan 31 '16 18:01 JoshWilliams92

I don't know if you fixed it yet but: Change this in package.json: "typescript": "^1.6.2" to "typescript": "~1.6.2"

It's because Angular only works with TS 1.6.2 at the moment

anned20 avatar Feb 21 '16 11:02 anned20

Yes this worked, thanks so much!

JoshWilliams92 avatar Feb 22 '16 10:02 JoshWilliams92

No problem man! Glad it works

anned20 avatar Feb 22 '16 10:02 anned20