0

When I try to build my solution I receive thousands of messages in the output window in the form D:\VisualJobs\VisualJobs\node_modules\typescript\lib\tsserverlibrary.d.ts(11545,40): error TS1005: Build:'=' expected.

in my tsconfig.json file in my exclude section I have:

"VisualJobs/VisualJobs/node_modules/*"

I have also ensured I have the latest release of typescript installed from the package manager console npm install typescript -g

The project is running fine on one machine. I copied the solution files over to another machine and it's on this machine that it errors. I'm guessing it's an environment issue, but I dont know why. VS2015 is being used on both machines, both have all updates installed and both have same extensions etc as well.

8
  • Did you try with "exclude": ["node_modules"] ? Commented Jan 18, 2017 at 14:20
  • @NicoD no but I did try just node_modules/* Commented Jan 18, 2017 at 14:46
  • @bilpor did you put the "exclude": ["node_modules"] in the project.json ? Commented Jan 18, 2017 at 15:10
  • @FabricioKoch No it's in the tsconfig.json fie where should it go if I need to place it in the project.json file Commented Jan 18, 2017 at 15:22
  • @bilpor check this answer. There's an example there showing how to exclude the node_modules folder for building your app. Commented Jan 19, 2017 at 10:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.