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

Including Hub Components Breaks app #1

Open
dbouwman opened this issue Feb 13, 2023 · 0 comments
Open

Including Hub Components Breaks app #1

dbouwman opened this issue Feb 13, 2023 · 0 comments

Comments

@dbouwman
Copy link
Contributor

Calcite components integrated pretty simply, screen shot shows a calcite-card on the main page of the app

image

However, adding import '@esri/hub-components'; into app.ts causes a wall of errors.

I've included "@arcgis/core": "~4.23.0", and we still have a lot of __esri can't be found.

There are a number of other odd issues from Hub-Components, re: locating files from relative paths... I've not dug into those yet, but I think that's just about having consistent imports in hub-components.

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components/arcgis-hub-map/arcgis-hub-map.d.ts:14:8
           Cannot find namespace '__esri'.

     L13:  _container: HTMLDivElement;
     L14:  map: __esri.Map;
     L15:  view: __esri.MapView;

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components/arcgis-hub-map-widget-container/arcgis-hub-map-widget-draw/types.d.ts:36:13
           Cannot find namespace '__esri'.

     L35:  export declare type GraphicChangeDetails = {
     L36:    graphics: __esri.Collection<__esri.Graphic>;
     L37:    bufferGraphics?: __esri.Collection<__esri.Graphic>;

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components/arcgis-hub-discussions-map-integrator/utils/utils.d.ts:54:48
           Cannot find namespace '__esri'.

     L53:   */
     L54:  export interface ITextSymbolProperties extends __esri.TextSymbolProperties {
     L55:    type: 'text';

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components/arcgis-hub-map-popover/types.d.ts:10:13
           Cannot find namespace '__esri'.

      L9:  export declare type PopoverEventDetails = {
     L10:    geometry: __esri.Geometry;
     L11:    view: __esri.View;

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components/arcgis-hub-feeds-list/arcgis-hub-feeds-list.d.ts:2:31
           Cannot find module '../../../src/utils/stencil-intl' or its corresponding type declarations.

      L1:  import { EventEmitter } from '../../stencil-public-runtime';
      L2:  import { ComponentIntl } from "../../../src/utils/stencil-intl";
      L3:  export interface IFeed {

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/utils/map.d.ts:1:63
           Cannot find namespace '__esri'.

      L1:  export declare const getExtentSymbol: (useHover?: boolean) => __esri.SimpleFillSymbolProperties;

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components/arcgis-hub-search-sort/arcgis-hub-search-sort.d.ts:3:31
           Cannot find module '../../../src/utils/stencil-intl' or its corresponding type declarations.

      L2:  import { HTMLCalciteDropdownElement } from '@esri/calcite-components/dist';
      L3:  import { ComponentIntl } from "../../../src/utils/stencil-intl";
      L4:  import { ISortOption } from '@esri/hub-common';

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:304:24
           Cannot find name 'ACCESS_LEVEL'.

    L303:   */
    L304:  "accessLevel": ACCESS_LEVEL;
    L305:  /**

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:490:25
           Cannot find name 'IHubFieldDisplay'.

    L489:  "entityId": string;
    L490:  "fields": Array<IHubFieldDisplay>;
    L491:  "sort": string;

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:515:18
           Cannot find name 'predefiendDateOptions'.

    L514:       */
    L515:      "value": predefiendDateOptions | string[];
    L516:  }

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:621:17
           Cannot find namespace '__esri'.

    L620:       */
    L621:      "view": __esri.MapView;
    L622:  }

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:745:20
           Cannot find name 'T'.

    L744:       */
    L745:      "subject": T;
    L746:  }

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:1891:19
           Cannot find name 'IExtentJson'.

   L1890:   */
   L1891:  "extent": IExtentJson;
   L1892:  /**

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:1991:27
           Cannot find name 'MetadataDisplay'.

   L1990:      "entityId": string;
   L1991:      "metadata": Array<MetadataDisplay>;
   L1992:  }

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:2036:26
           Cannot find name 'IHubNewContentResourceLink'.

   L2035:       */
   L2036:      "resourceLinks": IHubNewContentResourceLink[];
   L2037:  }

[ ERROR ]  TypeScript: ./node_modules/@esri/hub-components/dist/types/components.d.ts:2410:24
           Cannot find name 'FormatStyle'.

   L2409:   */
   L2410:  "formatStyle": FormatStyle;
   L2411:  /**

[24:24.2]  rebuild failed, watching for changes... in 2.85 s 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant