tamj0rd2/ncdc

Serve mode crashes when saving a ts file within a project reference

Closed this issue ยท 1 comments

Summary

What are you trying to do?

ncdc serve myconfig.yml -c mytsconfig.json --watch

What do you expect to happen?

When I save a typescript file I expect the sever to reload

What's actually happening?

The server does reload if the typescript file is within the specified ts project, however it fails when the file is part of a project reference. Error:

debug: Metric: Program - started
debug: Metric: Initiating watching schema generator - started
verbose: no invalidated projects - going to build a temporary program
debug: Metric: build typescript solution - started
debug: Metric: build typescript solution - completed | time taken: 0.06s | elapsed time: 0.20s
debug: Metric: build typescript program - started
debug: Metric: build typescript program - completed | time taken: 2.47s | elapsed time: 2.67s
verbose: Registered http://localhost:4003/v2/intelligence/prime-3039475 from config: Intel by id
info: Endpoints are being served on http://localhost:4003
info: Detected a change to your source files
debug: Metric: getting compilation diagnostics - started
debug: Metric: getting compilation diagnostics - completed | time taken: 0.00s | elapsed time: 5.02s
info: Attempting to restart ncdc server
error: Could not restart ncdc server
An error occurred while validating one of your configured fixtures:
Could not find type: IntelStoreSchema

Version info

  • installed ncdc version: 0.13.0
  • installed typescript version: 3.9.7
  • installed node version: v12.16.3
  • previously working ncdc version: This feature doesn't exist in old versions

tsconfig reference:

"references": [
    {
      "path": "../shared/tsconfig.json"
    }
  ],

Troubleshooting checklist

  • I've tried installing the latest version of ncdc (npm install ncdc@latest) but I still have the issue
  • I've had a look at other open/closed issues but haven't found anything relevant/helpful

๐ŸŽ‰ This issue has been resolved in version 0.13.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€