Update TS-value to get example to work #79
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, jest is running a higher version of ts-node than is being required in the package.
@themarkup/[email protected] /Users/yashparikh/node_modules/@themarkup/blacklight-collector
├─┬ [email protected]
│ ├─┬ @jest/[email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└── [email protected]
This led to the following issue:
^
TypeError: Unable to require file: src/index.ts
This is usually the result of a faulty configuration or import. Make sure there is a
.js
,.json
or other executable extension with loader attached beforets-node
available.at getOutput (/Users/yashparikh/node_modules/@themarkup/blacklight-collector/node_modules/ts-node/src/index.ts:586:17)
at Object.compile (/Users/yashparikh/node_modules/@themarkup/blacklight-collector/node_modules/ts-node/src/index.ts:775:32)
at Module.m._compile (/Users/yashparikh/node_modules/@themarkup/blacklight-collector/node_modules/ts-node/src/index.ts:858:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions. [as .ts] (/Users/yashparikh/node_modules/@themarkup/blacklight-collector/node_modules/ts-node/src/index.ts:861:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/Users/yashparikh/node_modules/@themarkup/blacklight-collector/example.ts:2:1)
Updating the ts-node version has resolved this issue for me!