Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TS-value to get example to work #79

Closed
wants to merge 1 commit into from

Conversation

yashparikh02
Copy link

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 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
Copy link
Member

BatMiles commented Jan 5, 2024

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

@BatMiles BatMiles closed this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants