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

fix(cli): Install server package in the cli container to inlcude lerc. #3353

Merged
merged 7 commits into from
Sep 30, 2024

Conversation

Wentao-Kuang
Copy link
Contributor

@Wentao-Kuang Wentao-Kuang commented Sep 29, 2024

Motivation

The cli container requires lerc to be installed which come from server.

`
node:internal/modules/cjs/loader:1228
throw err;
^

Error: Cannot find module 'lerc'
Require stack:

  • /app/index.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/app/index.cjs:190419:27)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/app/index.cjs' ]
    }
    `

Modifications

Install serve package in the cli container.

Verification

Container fixed after install server package, add smoke test in the container ci/cd for validation

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner September 29, 2024 23:45
@Wentao-Kuang Wentao-Kuang force-pushed the fix/install-server branch 2 times, most recently from 7c54750 to e6affc3 Compare September 30, 2024 02:13
@Wentao-Kuang Wentao-Kuang added this pull request to the merge queue Sep 30, 2024
Merged via the queue into master with commit 9b2b785 Sep 30, 2024
14 checks passed
@Wentao-Kuang Wentao-Kuang deleted the fix/install-server branch September 30, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants