Skip to content

npm run build failing #41

@vinayroyt

Description

@vinayroyt

When attempting to build a static distribution on the below Macbook Pro, I am hitting the listed error and the process does not complete.

uname -a
Darwin N61165JWVR 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:56:34 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6020 arm64

npm -v
10.5.2

node -v
v20.13.1

npm run build

> nglx-cloud-catalog@0.1.0 build
> cloudcatalog build


> @cloudcatalog/core@0.2.0 build
> next build

   Linting and checking validity of types  .. ⨯ ESLint: Invalid Options: - Unknown options: useEslintrc, extensions - 'extensions' has been removed.
   Linting and checking validity of types  .Failed to compile.

./src/hooks/CloudCatalog.tsx:12:5
Type error: Cannot find namespace 'JSX'.

  10 | }: {
  11 |   children: ReactNode;
> 12 | }): JSX.Element {
     |     ^
  13 |   return <Context.Provider value={defaultConfig}>{children}</Context.Provider>;
  14 | }
  15 |
node:internal/errors:984
  const err = new Error(message);
              ^

Error: Command failed: cross-env PROJECT_DIR=/Code/cloud-catalog npm run build
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at Command.<anonymous> (/Code/cloud-catalog/node_modules/@cloudcatalog/core/bin/cloudcatalog.js:73:5)
    at Command.listener (/Code/cloud-catalog/node_modules/commander/index.js:370:29)
    at Command.emit (node:events:519:28)
    at Command.parseArgs (/Code/cloud-catalog/node_modules/commander/index.js:892:12)
    at Command.parse (/Code/cloud-catalog/node_modules/commander/index.js:642:21)
    at run (/Code/cloud-catalog/node_modules/@cloudcatalog/core/bin/cloudcatalog.js:131:7) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 19257,
  stdout: null,
  stderr: null
}

Node.js v20.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions