bit icon indicating copy to clipboard operation
bit copied to clipboard

Build fails with TSCompiler error on components with ThemeUI

Open willrbc opened this issue 3 years ago • 4 comments

Describe the bug

I cannot build, tag or export any components which use the 'theme-ui' package. These components compile and build fine in a create-react-app

Steps to Reproduce

  1. Create new blank bit workspace
  2. run bit install theme-ui 3.. Create new component with simple usage of theme-ui
import React, { ReactNode } from 'react';

import { Box } from 'theme-ui';

export type ThemeUiTestProps = {
  /**
   * a node to be rendered in the special component.
   */
  children?: ReactNode;
};

export function ThemeUiTest({ children }: ThemeUiTestProps) {
  return <Box>{children}</Box>;
}

  1. run bit build or tag

Expected Behavior

Bit should successfully build this simple component

Screenshots, exceptions and logs

➜  typescript-errors git:(master) ✗ bit build
✔ found 1 components to build
✔ running pre install subscribers
✔ deduping dependencies for installation
...6b007e254cd67f2b12e68cbbe70908f2f5c2c |  +81 ++++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/will/.pnpm-store/v3
  Virtual store is at:             ../../Library/Caches/Bit/capsules/0d46b007e254cd67f2b12e68cbbe70908f2f5c2c/node_modules/.pnpm
...6b007e254cd67f2b12e68cbbe70908f2f5c2c | Progress: resolved 81, reused 81, downloaded 0, added 81, done
  -------------------------
✔ installing dependencies using pnpm
✔ running post install subscribers
✔ linking components
  running build pipe for 1 environments, total 7 tasks
  generated graph for env "teambit.react/react", originalSeedersOfThisEnv: 1, graphOfThisEnv: 1, graph total: 1
✔ executing pre-build for all tasks
✔ env "teambit.react/react", task "teambit.harmony/aspect:CoreExporter (export all core aspects via the main aspects)" has completed successfully in 5ms
✖ /Users/will/Library/Caches/Bit/capsules/0d46b007e254cd67f2b12e68cbbe70908f2f5c2c/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/theme-ui/dist/declarations/src/index.d.ts:2:27 - error TS1005: ',' expected.

2 import { ThemeUIJSX, type ThemeUIStyleObject } from '@theme-ui/core';
                            ~~~~~~~~~~~~~~~~~~

✖ env: teambit.react/react, task "teambit.compilation/compiler:TSCompiler" has failed
⚠ env: teambit.react/react, task "teambit.defender/tester:TestComponents" has skipped due to "teambit.compilation/compiler:TSCompiler" failure
⚠ env: teambit.react/react, task "teambit.pkg/pkg:PreparePackages" has skipped due to "teambit.compilation/compiler:TSCompiler" failure
⚠ env: teambit.react/react, task "teambit.harmony/application:build_application" has skipped due to "teambit.compilation/compiler:TSCompiler" failure
⚠ env: teambit.react/react, task "teambit.preview/preview:GenerateEnvTemplate" has skipped due to "teambit.compilation/compiler:TSCompiler" failure
⚠ env: teambit.react/react, task "teambit.preview/preview:GeneratePreview" has skipped due to "teambit.compilation/compiler:TSCompiler" failure
✔ executing post-build for all tasks
✖ teambit.pipelines/builder, running build pipe for 1 environments, total 7 tasks (completed in 2s)

The following errors were found while running the build pipeline
Failed task 1: "teambit.compilation/compiler:TSCompiler" of env "teambit.react/react"
component: um-scope/ui/theme-ui-test
/Users/will/Library/Caches/Bit/capsules/0d46b007e254cd67f2b12e68cbbe70908f2f5c2c/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/theme-ui/dist/declarations/src/index.d.ts:2:27 - error TS1005: ',' expected.

2 import { ThemeUIJSX, type ThemeUIStyleObject } from '@theme-ui/core';
                            ~~~~~~~~~~~~~~~~~~


Found 1 errors in 1 components


✖ Total 7 tasks. 1 succeeded. 1 failed. 5 skipped. Total errors: 1.

Specifications

  • Bit version: 0.0.769
  • Workspace type: harmony (I presume as I am new to Bit)
  • Node version: v14.18.1
  • npm / yarn version: 1.22.19
  • Platform: MacOs 12.4

for harmony workspace default env and aspects

Additional context

I have been trying to integrate bit into a big project for several days, having worked through a number of versioning issues I'm finally stumped with this one.

Ironically we don't actually need these components to compile, we just want to use bit as good way to share components between projects on a small team.

willrbc avatar Jun 22 '22 12:06 willrbc

I am also getting the same error while exporting pie chart component using victory native as follows :

node_modules/victory-core/lib/index.d.ts:15:30 - error TS1005: ',' expected.

15 export { Border as Box, type BorderProps as BoxProps, } from "./victory-primitives"; ~~~~~~~~~~~ ✖ env: teambit.react/react-native, task "teambit.compilation/compiler:TSCompiler" has failed

It was earlier working fine. I am not sure why it stops working.

I try to tag component with the --skip-tests.

RiteshJariwala avatar Jun 30 '22 05:06 RiteshJariwala

I've got it tagging by using --force-deploy

this covers my limited use-case so far, but as our team and project expands I'd be more comfortable using Bit if I understood why the above was happening.

willrbc avatar Jun 30 '22 09:06 willrbc

Hello Will,

I tried both using --force-deploy also and then --skip-tests still the same.

RiteshJariwala avatar Jun 30 '22 14:06 RiteshJariwala

I'm tagging in here, I have a similar issue with MUI.

I've added my module augmentations in my env/mui/typescript/styles.d.ts

import { PaletteColorOptions } from "@mui/material";

declare module "@mui/material/styles" {
    interface Palette {
        blueish: PaletteColorOptions;
    }
    interface PaletteOptions {
        blueish: PaletteColorOptions;
    }
}

and made sure that ts-transformer.ts adds this file when I bit tag (it does, console.logs show it), mui.main.runtime.ts has these transformers configured as:

        const tsModifiers: UseTypescriptModifiers = {
            devConfig: [devConfigTransformer],
            buildConfig: [buildConfigTransformer],
        };

and in the react.compose:

            react.useTypescript(tsModifiers)

dev/build are the same, they take the supplied config, merge my tsconfig to it and add the styles.d.ts file.

const tsConfig = require("./tsconfig.json");

export const commonTransformer: TsConfigTransformer = (config: TypescriptConfigMutator) => {
    const newConfig = config.addTypes([path.join(__dirname, "styles.d.ts")]);
    newConfig.mergeTsConfig(tsConfig);
    console.log(newConfig); // THIS shows the file being added to the config
    return newConfig;
};

export const devConfigTransformer: TsConfigTransformer = (config: TypescriptConfigMutator) =>
    commonTransformer(config, {});

export const buildConfigTransformer: TsConfigTransformer = (config: TypescriptConfigMutator) =>
    commonTransformer(config, {});

I've also added a file on root/types/mui.d.ts

export * from "../scope/env/mui/typescript/styles";

my root/tsconfig.js is as is

{
    "extends": "./scope/envs/mui/typescript/tsconfig.json",
    "include": ["scope", "types"]
}

Then when compiling anything that uses a custom palette, declared in that styles.d.ts file, bit actually raises an error and I have no idea why.

It works if I copy paste these modules augmentation everywhere I need them but... I'd feel shame committing that! haha

Any help on either issue would be gratefully received.

[EDIT]: Solved: the path path.join(__dirname, "styles.d.ts") is actually the source path, it's not available in node modules as it's deeper in dist/, I dug around and found the right path for my file, adapted that line and it now loads the file.

PiTiLeZarD avatar Jul 26 '22 06:07 PiTiLeZarD

Getting a similar kind of issue for ant design 5.

`RT0421:bamboo ashis.kumar jena$ bit tag components/data-entry/file-upload --message "Initial release version 0.0.1" ✔ deduping dependencies for installation ✔ running pre install subscribers ...7003cf204514ff430b185167379a8761e14bc | +159 ++++++++++++++++ Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /Users/ashis.kumar jena/.pnpm-store/v3 Virtual store is at: ../../../../../../Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm ...7003cf204514ff430b185167379a8761e14bc | Progress: resolved 159, reused 159, downloaded 0, added 158

✔ installing dependencies using pnpm ✔ running post install subscribers ✔ linking components running build pipe for 1 environments, total 7 tasks generated graph for env "teambit.react/react", originalSeedersOfThisEnv: 1, graphOfThisEnv: 1, graph total: 1 ✔ executing pre-build for all tasks ✔ env "teambit.react/react", task "teambit.harmony/aspect:CoreExporter (export all core aspects via the main aspects)" has completed successfully in 179μs ✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/calendar/index.d.ts:2:15 - error TS1005: ',' expected.

2 import { type CalendarProps } from './generateCalendar'; ~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/col/index.d.ts:1:20 - error TS1005: ',' expected.

1 import { Col, type ColProps, type ColSize } from '../grid'; ~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/col/index.d.ts:1:35 - error TS1005: ',' expected.

1 import { Col, type ColProps, type ColSize } from '../grid'; ~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:15 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:71 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:87 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:107 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/Form.d.ts:7:24 - error TS1005: ',' expected.

7 import useForm, { type FormInstance } from './hooks/useForm'; ~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/Form.d.ts:33:30 - error TS1005: ',' expected.

33 export { useForm, List, type FormInstance, useWatch }; ~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:3:26 - error TS1005: ',' expected.

3 import ErrorList, { type ErrorListProps } from './ErrorList'; ~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:4:29 - error TS1005: ',' expected.

4 import InternalForm, { type FormInstance, type FormProps, useForm, useWatch } from './Form'; ~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:4:48 - error TS1005: ',' expected.

4 import InternalForm, { type FormInstance, type FormProps, useForm, useWatch } from './Form'; ~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:5:21 - error TS1005: ',' expected.

5 import Item, { type FormItemProps } from './FormItem'; ~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:6:21 - error TS1005: ',' expected.

6 import List, { type FormListFieldData, type FormListOperation, type FormListProps } from './FormList'; ~~~~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:6:45 - error TS1005: ',' expected.

6 import List, { type FormListFieldData, type FormListOperation, type FormListProps } from './FormList'; ~~~~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:6:69 - error TS1005: ',' expected.

6 import List, { type FormListFieldData, type FormListOperation, type FormListProps } from './FormList'; ~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/image/index.d.ts:1:15 - error TS1005: ',' expected.

1 import { type ImageProps } from 'rc-image'; ~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/menu/index.d.ts:7:21 - error TS1005: ',' expected.

7 import Item, { type MenuItemProps } from './MenuItem'; ~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/menu/index.d.ts:8:24 - error TS1005: ',' expected.

8 import SubMenu, { type SubMenuProps } from './SubMenu'; ~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/pagination/Pagination.d.ts:2:15 - error TS1005: ',' expected.

2 import { type PaginationLocale } from 'rc-pagination'; ~~~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/row/index.d.ts:1:20 - error TS1005: ',' expected.

1 import { Row, type RowProps } from '../grid'; ~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/select/index.d.ts:2:15 - error TS1005: ',' expected.

2 import { type BaseSelectRef, OptGroup, Option } from 'rc-select'; ~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/statistic/index.d.ts:1:26 - error TS1005: ',' expected.

1 import Statistic, { type StatisticProps } from './Statistic'; ~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/table/index.d.ts:1:22 - error TS1005: ',' expected.

1 import Table, { type TablePaginationConfig, type TableProps } from './Table'; ~~~~~~~~~~~~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/table/index.d.ts:1:50 - error TS1005: ',' expected.

1 import Table, { type TablePaginationConfig, type TableProps } from './Table'; ~~~~~~~~~~

✖ /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/tabs/index.d.ts:4:15 - error TS1005: ',' expected.

4 import { type TabPaneProps } from './TabPane'; ~~~~~~~~~~~~

✖ env: teambit.react/react, task "teambit.compilation/compiler:TSCompiler" has failed ⚠ env: teambit.react/react, task "teambit.defender/tester:TestComponents" has skipped due to "teambit.compilation/compiler:TSCompiler" failure ⚠ env: teambit.react/react, task "teambit.pkg/pkg:PreparePackages" has skipped due to "teambit.compilation/compiler:TSCompiler" failure ⚠ env: teambit.react/react, task "teambit.harmony/application:build_application" has skipped due to "teambit.compilation/compiler:TSCompiler" failure ⚠ env: teambit.react/react, task "teambit.preview/preview:GenerateEnvTemplate" has skipped due to "teambit.compilation/compiler:TSCompiler" failure ⚠ env: teambit.react/react, task "teambit.preview/preview:GeneratePreview" has skipped due to "teambit.compilation/compiler:TSCompiler" failure ✔ executing post-build for all tasks ✖ teambit.pipelines/builder, running build pipe for 1 environments, total 7 tasks (completed in 1s)

The following errors were found while running the build pipeline Failed task 1: "teambit.compilation/compiler:TSCompiler" of env "teambit.react/react" component: smartpaddle.biz-bamboo-v2/components/data-entry/[email protected] /Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/calendar/index.d.ts:2:15 - error TS1005: ',' expected.

2 import { type CalendarProps } from './generateCalendar'; ~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/col/index.d.ts:1:20 - error TS1005: ',' expected.

1 import { Col, type ColProps, type ColSize } from '../grid'; ~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/col/index.d.ts:1:35 - error TS1005: ',' expected.

1 import { Col, type ColProps, type ColSize } from '../grid'; ~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:15 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:71 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:87 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/config-provider/index.d.ts:10:107 - error TS1005: ',' expected.

10 export { type RenderEmptyHandler, ConfigContext, ConfigConsumer, type CSPConfig, type DirectionType, type ConfigConsumerProps, }; ~~~~~~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/Form.d.ts:7:24 - error TS1005: ',' expected.

7 import useForm, { type FormInstance } from './hooks/useForm'; ~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/Form.d.ts:33:30 - error TS1005: ',' expected.

33 export { useForm, List, type FormInstance, useWatch }; ~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:3:26 - error TS1005: ',' expected.

3 import ErrorList, { type ErrorListProps } from './ErrorList'; ~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:4:29 - error TS1005: ',' expected.

4 import InternalForm, { type FormInstance, type FormProps, useForm, useWatch } from './Form'; ~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:4:48 - error TS1005: ',' expected.

4 import InternalForm, { type FormInstance, type FormProps, useForm, useWatch } from './Form'; ~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:5:21 - error TS1005: ',' expected.

5 import Item, { type FormItemProps } from './FormItem'; ~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:6:21 - error TS1005: ',' expected.

6 import List, { type FormListFieldData, type FormListOperation, type FormListProps } from './FormList'; ~~~~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:6:45 - error TS1005: ',' expected.

6 import List, { type FormListFieldData, type FormListOperation, type FormListProps } from './FormList'; ~~~~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/form/index.d.ts:6:69 - error TS1005: ',' expected.

6 import List, { type FormListFieldData, type FormListOperation, type FormListProps } from './FormList'; ~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/image/index.d.ts:1:15 - error TS1005: ',' expected.

1 import { type ImageProps } from 'rc-image'; ~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/menu/index.d.ts:7:21 - error TS1005: ',' expected.

7 import Item, { type MenuItemProps } from './MenuItem'; ~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/menu/index.d.ts:8:24 - error TS1005: ',' expected.

8 import SubMenu, { type SubMenuProps } from './SubMenu'; ~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/pagination/Pagination.d.ts:2:15 - error TS1005: ',' expected.

2 import { type PaginationLocale } from 'rc-pagination'; ~~~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/row/index.d.ts:1:20 - error TS1005: ',' expected.

1 import { Row, type RowProps } from '../grid'; ~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/select/index.d.ts:2:15 - error TS1005: ',' expected.

2 import { type BaseSelectRef, OptGroup, Option } from 'rc-select'; ~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/statistic/index.d.ts:1:26 - error TS1005: ',' expected.

1 import Statistic, { type StatisticProps } from './Statistic'; ~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/table/index.d.ts:1:22 - error TS1005: ',' expected.

1 import Table, { type TablePaginationConfig, type TableProps } from './Table'; ~~~~~~~~~~~~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/table/index.d.ts:1:50 - error TS1005: ',' expected.

1 import Table, { type TablePaginationConfig, type TableProps } from './Table'; ~~~~~~~~~~

/Users/ashis.kumar jena/Library/Caches/Bit/capsules/b6b7003cf204514ff430b185167379a8761e14bc/node_modules/.pnpm/[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/antd/es/tabs/index.d.ts:4:15 - error TS1005: ',' expected.

4 import { type TabPaneProps } from './TabPane'; ~~~~~~~~~~~~

Found 26 errors in 1 components

✖ Total 7 tasks. 1 succeeded. 1 failed. 5 skipped. Total errors: 26.`

ashisjena96 avatar Nov 24 '22 15:11 ashisjena96

Getting same as @ashisjena96

Did you solve it?

suitux avatar Feb 16 '23 10:02 suitux

Should be fine with the react-env set with the needed deps in the env.jsonc file

NitsanCohen770 avatar Aug 28 '23 22:08 NitsanCohen770