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

Cannot find module 'tslib' from 'node_modules/ts-results/index.js' when running Jest test #54

Open
afalahi opened this issue Nov 10, 2022 · 2 comments

Comments

@afalahi
Copy link

afalahi commented Nov 10, 2022

Version:
ts-results 3.3.0 (latest)

Stacktrace:

    Require stack:
      node_modules/ts-results/index.js
      src/controllers/ConfigurationManager/classes/Profile.ts
      src/controllers/ConfigurationManager/tests/configManager.test.ts

       6 | } from '../../../utils/errorMessages';
       7 | import ConfigProfile from '../interfaces/ConfigProfile';
    >  8 | import { Result, Ok, Err } from 'ts-results';
         | ^
       9 |
      10 | export default class Profile {
      11 |   private profiles: ConfigProfile = {};

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:487:11)
      at node_modules/ts-results/index.js:12:19
      at node_modules/ts-results/index.js:3:17
      at Object.<anonymous> (node_modules/ts-results/index.js:9:3)
      at Object.<anonymous> (src/controllers/ConfigurationManager/classes/Profile.ts:8:1)
      at Object.<anonymous> (src/controllers/ConfigurationManager/tests/configManager.test.ts:2:1)
@wralith
Copy link

wralith commented Dec 30, 2022

#38 Waiting for new release i guess

@jstasiak
Copy link
Contributor

For what it's worth we (Lune Climate) maintain a ts-results fork where this is resolved: https://www.npmjs.com/package/ts-results-es

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

No branches or pull requests

3 participants