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 rollup-plugin-typescript2 to v0.34.1 #171

Closed
wants to merge 1 commit into from
Closed

Update rollup-plugin-typescript2 to v0.34.1 #171

wants to merge 1 commit into from

Conversation

Lawlzer
Copy link

@Lawlzer Lawlzer commented Feb 10, 2023

This fixes the "tslib" package.json not being defined correctly bug.
This is a direct fix to #169

Previous error:
PS C:\code\temp\lllllllll\screeps-typescript-starter> npm run push-pserver

[email protected] push-pserver
rollup -c --environment DEST:pserver

Error loading tslib helper library.
[!] Error: Package subpath './package.json' is not defined by "exports" in C:\code\temp\lllllllll\screeps-typescript-starter\node_modules\tslib\package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in C:\code\temp\lllllllll\screeps-typescript-starter\node_modules\tslib\package.json
at new NodeError (node:internal/errors:399:5)
at exportsNotFound (node:internal/modules/esm/resolve:361:10)
at resolveExports (node:internal/modules/cjs/loader:538:36)
at Module._findPath (node:internal/modules/cjs/loader:607:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1033:27)
at Module._load (node:internal/modules/cjs/loader:893:27)
at Module.require (node:internal/modules/cjs/loader:1113:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (C:\code\temp\lllllllll\screeps-typescript-starter\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:25170:26)

This fixes the "tslib" package.json not being defined correctly bug.
@Lawlzer
Copy link
Author

Lawlzer commented Feb 10, 2023

There has already been a PR made for this #164
My apologies, completely missed that PR until now.

@Lawlzer Lawlzer closed this Feb 10, 2023
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.

1 participant