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

Build failed in node 20 related to tslib #2582

Closed
ellyx-csg opened this issue May 8, 2024 · 3 comments · Fixed by #2606
Closed

Build failed in node 20 related to tslib #2582

ellyx-csg opened this issue May 8, 2024 · 3 comments · Fixed by #2606

Comments

@ellyx-csg
Copy link

Context

I'm trying to build latest changes in main branch using node v20

Node version: 20.11.1
yarn version: 1.22.19
Platform: Darwin Kernel Version 22.6.0 arm64

Current Behavior

Build is failing with error:

Error loading `tslib` helper library.
[!] Error: Package subpath './package.json' is not defined by "exports" in elements/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json
Error: Package subpath './package.json' is not defined by "exports" in elements/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:303:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
    at resolveExports (node:internal/modules/cjs/loader:591:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:668:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
    at Function.Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (elements/node_modules/rollup-plugin-typescript2/src/tslib.ts:11:23)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)

Expected Behavior

Build success

Possible Solution(s)

@weyert
Copy link
Contributor

weyert commented May 20, 2024

Yeah, it works best with Node v16 and Yarn 1.22.x

Copy link

github-actions bot commented Jun 7, 2024

This ticket has been labeled jira. A tracking ticket in Stoplight's Jira (STOP-619) has been created.

@saper
Copy link

saper commented Jun 21, 2024

Possibly related: microsoft/tslib#135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants