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: recreate lockfile due to build errors #9790

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

jcfranco
Copy link
Member

Related Issue: N/A

Summary

Recreates lockfile to fix the following build error:

➜ calcite-design-system (dev) ✗ npm i && npm run build
npm WARN deprecated @types/prettier@3.0.0: This is a stub types definition. prettier provides its own type definitions, so you do not need this installed.
npm ERR! code 1
npm ERR! path /Users/.../calcite-design-system/node_modules/nx
npm ERR! command failed
npm ERR! command sh -c node ./bin/post-install
npm ERR! /Users/.../calcite-design-system/node_modules/nx/src/native/native-bindings.js:244
npm ERR!     throw loadError
npm ERR!     ^
npm ERR!
npm ERR! Error: Cannot find module '@nx/nx-darwin-arm64'
npm ERR! Require stack:
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/native/index.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/hasher/node-task-hasher-impl.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/hasher/task-hasher.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/hasher/hash-task.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/tasks-runner/run-command.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/nx-cloud/utilities/get-cloud-options.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/bin/post-install.js
npm ERR!     at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
npm ERR!     at Function.resolve (node:internal/modules/helpers:190:19)
npm ERR!     at Module._load (/Users/.../calcite-design-system/node_modules/nx/src/native/index.js:53:36)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1231:19)
npm ERR!     at require (node:internal/modules/helpers:179:18)
npm ERR!     at Object.<anonymous> (/Users/.../calcite-design-system/node_modules/nx/src/native/native-bindings.js:135:29)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1369:14)
npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1206:32)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:1022:12) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/native/index.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/hasher/node-task-hasher-impl.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/hasher/task-hasher.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/hasher/hash-task.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/tasks-runner/run-command.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/nx-cloud/utilities/get-cloud-options.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/bin/post-install.js'
npm ERR!   ]
npm ERR! }
npm ERR!
npm ERR! Node.js v20.12.1

@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Jul 16, 2024
@github-actions github-actions bot added the chore Issues with changes that don't modify src or test files. label Jul 16, 2024
@jcfranco jcfranco merged commit 5cd22c0 into dev Jul 16, 2024
9 checks passed
@jcfranco jcfranco deleted the jcfranco/recreate-lockfile branch July 16, 2024 17:06
@github-actions github-actions bot added this to the 2024-07-30 - Jul Release milestone Jul 16, 2024
benelan added a commit that referenced this pull request Jul 16, 2024
**Related Issue:** #9774, #9779, #9790

## Summary

One more round of bug pong

The globby one is higher priority since it impacts the CI too, compared
to only OSX machines. I'll try to find a solution to the OSX errors that
doesn't cause globby issues.
benelan added a commit that referenced this pull request Jul 16, 2024
* origin/dev: (61 commits)
  build: fix globby errors (#9797)
  chore: release next
  fix(deps): move @types/sortablejs as a dependency so the public types resolve properly (#9786)
  refactor(loader): simplify loader part rendering (#9728)
  chore: release next
  feat(combobox, combobox-item): add `description`, `shortHeading` props and `content-end` slot (#9771)
  docs: update component READMEs (#9735)
  chore: fix cleanup npm script (#9791)
  build: recreate lockfile due to build errors (#9790)
  style: autofix lint issues (#9789)
  chore: release next
  feat(panel, flow-item): add alerts slot (#9778)
  build(deps): update dependency lerna to v8.1.6 (#9679)
  build(deps): update dependency tslib to v2 (#9659)
  build(deps): update storybook monorepo to v8.2.2 (#9656)
  build(deps): update dependency tsx to v4.16.2 (#9642)
  build(deps): update amannn/action-semantic-pull-request action to v5.5.3 (#9712)
  build(deps): update dependency @esri/calcite-ui-icons to v3.29.0 (#9765)
  build(deps): update dependency @stencil/core to v4.19.2 (#9767)
  chore: release next
  ...
benelan added a commit that referenced this pull request Jul 19, 2024
**Related Issue:** #9774, #9779, #9790, #9797

## Summary

Resolve build errors related to Nx Native Modules using a solution from
lerna/lerna#3815 (comment)

Nx documented additional troubleshooting steps for this common error:
https://nx.dev/troubleshooting/troubleshoot-nx-install-issues
calcite-admin pushed a commit that referenced this pull request Jul 30, 2024
**Related Issue:** N/A

## Summary

Recreates lockfile to fix the following build error:

```bash
➜ calcite-design-system (dev) ✗ npm i && npm run build
npm WARN deprecated @types/prettier@3.0.0: This is a stub types definition. prettier provides its own type definitions, so you do not need this installed.
npm ERR! code 1
npm ERR! path /Users/.../calcite-design-system/node_modules/nx
npm ERR! command failed
npm ERR! command sh -c node ./bin/post-install
npm ERR! /Users/.../calcite-design-system/node_modules/nx/src/native/native-bindings.js:244
npm ERR!     throw loadError
npm ERR!     ^
npm ERR!
npm ERR! Error: Cannot find module '@nx/nx-darwin-arm64'
npm ERR! Require stack:
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/native/index.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/hasher/node-task-hasher-impl.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/hasher/task-hasher.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/hasher/hash-task.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/tasks-runner/run-command.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/src/nx-cloud/utilities/get-cloud-options.js
npm ERR! - /Users/.../calcite-design-system/node_modules/nx/bin/post-install.js
npm ERR!     at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
npm ERR!     at Function.resolve (node:internal/modules/helpers:190:19)
npm ERR!     at Module._load (/Users/.../calcite-design-system/node_modules/nx/src/native/index.js:53:36)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1231:19)
npm ERR!     at require (node:internal/modules/helpers:179:18)
npm ERR!     at Object.<anonymous> (/Users/.../calcite-design-system/node_modules/nx/src/native/native-bindings.js:135:29)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1369:14)
npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1206:32)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:1022:12) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/native/index.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/hasher/node-task-hasher-impl.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/hasher/task-hasher.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/hasher/hash-task.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/tasks-runner/run-command.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/src/nx-cloud/utilities/get-cloud-options.js',
npm ERR!     '/Users/.../calcite-design-system/node_modules/nx/bin/post-install.js'
npm ERR!   ]
npm ERR! }
npm ERR!
npm ERR! Node.js v20.12.1
```
calcite-admin pushed a commit that referenced this pull request Jul 30, 2024
**Related Issue:** #9774, #9779, #9790

## Summary

One more round of bug pong

The globby one is higher priority since it impacts the CI too, compared
to only OSX machines. I'll try to find a solution to the OSX errors that
doesn't cause globby issues.
calcite-admin pushed a commit that referenced this pull request Jul 30, 2024
**Related Issue:** #9774, #9779, #9790, #9797

## Summary

Resolve build errors related to Nx Native Modules using a solution from
lerna/lerna#3815 (comment)

Nx documented additional troubleshooting steps for this common error:
https://nx.dev/troubleshooting/troubleshoot-nx-install-issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issues with changes that don't modify src or test files. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants