Skip to content

Behaviour difference in monorepo #1672

@neo773

Description

@neo773

Steps to reproduce

git clone https://github.com/twentyhq/twenty/
cd twenty 
yarn install
cd packages/twenty-server

Behavior with [email protected]

neo@neos-MacBook-Pro twenty-server % bunx tsc --noEmit
neo@neos-MacBook-Pro twenty-server % 

Behavior with tsgo

neo@neos-MacBook-Pro twenty-server % bunx @typescript/native-preview@latest
src/engine/api/mcp/services/tools/mcp-metadata-tools.service.ts:90:9 - error TS2742: The inferred type of 'send' cannot be named without a reference to '../../../../../../../../node_modules/axios/index.d.cts'. This is likely not portable. A type annotation is necessary.

90   async send(requestContext: RequestContext, data: Query) {
           ~~~~

src/engine/api/rest/metadata/rest-api-metadata.service.ts:24:9 - error TS2742: The inferred type of 'get' cannot be named without a reference to '../../../../../../../node_modules/axios/index.d.cts'. This is likely not portable. A type annotation is necessary.

24   async get(request: Request) {
           ~~~

src/engine/api/rest/metadata/rest-api-metadata.service.ts:38:9 - error TS2742: The inferred type of 'create' cannot be named without a reference to '../../../../../../../node_modules/axios/index.d.cts'. This is likely not portable. A type annotation is necessary.

38   async create(request: Request) {
           ~~~~~~

src/engine/api/rest/metadata/rest-api-metadata.service.ts:52:9 - error TS2742: The inferred type of 'update' cannot be named without a reference to '../../../../../../../node_modules/axios/index.d.cts'. This is likely not portable. A type annotation is necessary.

52   async update(request: Request) {
           ~~~~~~

src/engine/api/rest/metadata/rest-api-metadata.service.ts:66:9 - error TS2742: The inferred type of 'delete' cannot be named without a reference to '../../../../../../../node_modules/axios/index.d.cts'. This is likely not portable. A type annotation is necessary.

66   async delete(request: Request) {
           ~~~~~~

src/engine/metadata-modules/constants/search-vector-field.constants.ts:3:14 - error TS2742: The inferred type of 'SEARCH_VECTOR_FIELD' cannot be named without a reference to '../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

3 export const SEARCH_VECTOR_FIELD = {
               ~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/prefill-views.ts:21:14 - error TS2742: The inferred type of 'prefillViews' cannot be named without a reference to '../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

21 export const prefillViews = async (
                ~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/companies-all.view.ts:11:14 - error TS2742: The inferred type of 'companiesAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

11 export const companiesAllView = (
                ~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/custom-all.view.ts:5:14 - error TS2742: The inferred type of 'customAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

5 export const customAllView = (
               ~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/dashboards-all.view.ts:10:14 - error TS2742: The inferred type of 'dashboardsAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

10 export const dashboardsAllView = (
                ~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/notes-all.view.ts:10:14 - error TS2742: The inferred type of 'notesAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

10 export const notesAllView = (
                ~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/opportunities-all.view.ts:8:14 - error TS2742: The inferred type of 'opportunitiesAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

8 export const opportunitiesAllView = (
               ~~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/opportunity-by-stage.view.ts:8:14 - error TS2742: The inferred type of 'opportunitiesByStageView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

8 export const opportunitiesByStageView = (
               ~~~~~~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/opportunity-table-by-stage.view.ts:8:14 - error TS2742: The inferred type of 'opportunitiesTableByStageView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

8 export const opportunitiesTableByStageView = (
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/people-all.view.ts:11:14 - error TS2742: The inferred type of 'peopleAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

11 export const peopleAllView = (
                ~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view.ts:10:14 - error TS2742: The inferred type of 'tasksAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

10 export const tasksAllView = (
                ~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-assigned-to-me.ts:10:14 - error TS2742: The inferred type of 'tasksAssignedToMeView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

10 export const tasksAssignedToMeView = (
                ~~~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-by-status.view.ts:10:14 - error TS2742: The inferred type of 'tasksByStatusView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

10 export const tasksByStatusView = (
                ~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-runs-all.view.ts:8:14 - error TS2742: The inferred type of 'workflowRunsAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

8 export const workflowRunsAllView = (
               ~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-versions-all.view.ts:11:14 - error TS2742: The inferred type of 'workflowVersionsAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

11 export const workflowVersionsAllView = (
                ~~~~~~~~~~~~~~~~~~~~~~~

src/engine/workspace-manager/standard-objects-prefill-data/views/workflows-all.view.ts:11:14 - error TS2742: The inferred type of 'workflowsAllView' cannot be named without a reference to '../../../../../../../node_modules/@lingui/core/dist/index.d.cts'. This is likely not portable. A type annotation is necessary.

11 export const workflowsAllView = (
                ~~~~~~~~~~~~~~~~

src/utils/image.ts:27:18 - error TS2749: 'Axios' refers to a value, but is being used as a type here. Did you mean 'typeof Axios'?

27   axiosInstance: Axios,
                    ~~~~~

test/integration/metadata/suites/field-metadata/morph-relation/failing-field-metadata-morph-relation-creation.integration-spec.ts:1:23 - error TS2307: Cannot find module '@faker-js/faker/.' or its corresponding type declarations.

1 import { faker } from '@faker-js/faker/.';
                        ~~~~~~~~~~~~~~~~~~~


Found 23 errors in 20 files.

Errors  Files
     1  src/engine/api/mcp/services/tools/mcp-metadata-tools.service.ts:90
     4  src/engine/api/rest/metadata/rest-api-metadata.service.ts:24
     1  src/engine/metadata-modules/constants/search-vector-field.constants.ts:3
     1  src/engine/workspace-manager/standard-objects-prefill-data/prefill-views.ts:21
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/companies-all.view.ts:11
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/custom-all.view.ts:5
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/dashboards-all.view.ts:10
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/notes-all.view.ts:10
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/opportunities-all.view.ts:8
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/opportunity-by-stage.view.ts:8
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/opportunity-table-by-stage.view.ts:8
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/people-all.view.ts:11
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view.ts:10
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-assigned-to-me.ts:10
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-by-status.view.ts:10
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-runs-all.view.ts:8
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-versions-all.view.ts:11
     1  src/engine/workspace-manager/standard-objects-prefill-data/views/workflows-all.view.ts:11
     1  src/utils/image.ts:27
     1  test/integration/metadata/suites/field-metadata/morph-relation/failing-field-metadata-morph-relation-creation.integration-spec.ts:1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions