You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Paths Mapping section of the documentation suggests using the native node require but this fails with a Syntax Error when
Expected behavior :
Allow comments in TsConfig when mapping paths
Debug log:
log file content
SyntaxError: /home/coder/project/packages/server/tsconfig.json: Unexpected token / in JSON at position 420
at JSON.parse (<anonymous>)
at Object.Module._extensions..json (internal/modules/cjs/loader.js:841:27)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/home/coder/project/packages/server/test/jest-e2e.config.js:6:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
Update the documentation to suggest using the tsconfig package, which supports all of the features of typescript, including comments and hierarchy searching for the tsconfig.
The text was updated successfully, but these errors were encountered:
Issue :
The Paths Mapping section of the documentation suggests using the native node
require
but this fails with a Syntax Error whenExpected behavior :
Allow comments in TsConfig when mapping paths
Debug log:
log file content
Related (but for core): #139
Suggestion
Update the documentation to suggest using the tsconfig package, which supports all of the features of typescript, including comments and hierarchy searching for the tsconfig.
The text was updated successfully, but these errors were encountered: