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

3.11 regression: undeclared tslib dependency #3476

Closed
martinpitt opened this issue Feb 11, 2020 · 1 comment
Closed

3.11 regression: undeclared tslib dependency #3476

martinpitt opened this issue Feb 11, 2020 · 1 comment

Comments

@martinpitt
Copy link

Starting with 3.11, node_modules/less/dist/less.cjs.js does require('tslib'), but less' package.json does not declare this as a dependency.

This now causes project builds to fail like this:

ERROR in ./lib/form-layout.less
Module build failed: Error: Cannot find module 'tslib'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/build/cockpit-project/bots/make-checkout-workdir/cockpit/node_modules/less/dist/less.cjs.js:3:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
...
@matthew-dean
Copy link
Member

Duplicate of #3469

@matthew-dean matthew-dean marked this as a duplicate of #3469 Feb 11, 2020
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

2 participants