the-markup / blacklight-collector

GNU General Public License v3.0
195 stars 36 forks source link

Update TS-value to get example to work #79

Closed yashparikh02 closed 2 weeks ago

yashparikh02 commented 8 months ago

Currently, jest is running a higher version of ts-node than is being required in the package.

@themarkup/blacklight-collector@3.0.3 /Users/yashparikh/node_modules/@themarkup/blacklight-collector ├─┬ jest@28.1.3 │ ├─┬ @jest/core@28.1.3 │ │ └─┬ jest-config@28.1.3 │ │ └── ts-node@10.9.2 │ └─┬ jest-cli@28.1.3 │ └─┬ jest-config@28.1.3 │ └── ts-node@10.9.2 └── ts-node@8.10.2

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 before ts-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!

BatMiles commented 8 months ago

Hi @yashparikh02 , could you include steps to reproduce? Following the README instructions in a fresh clone works for me.