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:ts is failing #12

Open
Ricardh522 opened this issue Nov 18, 2021 · 0 comments
Open

Build:ts is failing #12

Ricardh522 opened this issue Nov 18, 2021 · 0 comments

Comments

@Ricardh522
Copy link

When building this project, I am getting 6 typescript errors. However, when I set the 'esModuleInterop' flag to true a whole new set of errors is presented. Is this app broken and in need of development? I thought these were the final deployed app templates.

`(base) PS C:\GIT\ESRI_ConfigurableApps\compare-app> npm run build:ts

3d-inset@0.0.1 build:ts
tsc

node_modules/@esri/application-base-js/index.d.ts:127:9 - error TS1259: Module '"esri/portal/Portal"' can only be default-imported using the 'esModuleInterop' flag

127 import Portal from 'esri/portal/Portal';
~~~~~~

node_modules/@types/arcgis-js-api/index.d.ts:61281:3
61281 export = Portal;
~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/@esri/application-base-js/index.d.ts:128:9 - error TS1259: Module '"esri/portal/PortalQueryParams"' can only be default-imported using the 'esModuleInterop' flag

128 import PortalQueryParams from 'esri/portal/PortalQueryParams'; class ApplicationBase {
~~~~~~~~~~~~~~~~~

node_modules/@types/arcgis-js-api/index.d.ts:61306:3
61306 export = PortalQueryParams;
~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/@esri/application-base-js/index.d.ts:173:9 - error TS1259: Module '"esri/Camera"' can only be default-imported using the 'esModuleInterop' flag

173 import Camera from 'esri/Camera';
~~~~~~

node_modules/@types/arcgis-js-api/index.d.ts:60816:3
60816 export = Camera;
~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/@esri/application-base-js/index.d.ts:174:9 - error TS1259: Module '"esri/geometry/Extent"' can only be default-imported using the 'esModuleInterop' flag

174 import Extent from 'esri/geometry/Extent';
~~~~~~

node_modules/@types/arcgis-js-api/index.d.ts:60891:3
60891 export = Extent;
~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/@esri/application-base-js/index.d.ts:175:9 - error TS1259: Module '"esri/geometry/Point"' can only be default-imported using the 'esModuleInterop' flag

175 import Point from 'esri/geometry/Point';
~~~~~

node_modules/@types/arcgis-js-api/index.d.ts:60916:3
60916 export = Point;
~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/@esri/application-base-js/index.d.ts:187:9 - error TS1259: Module '"esri/portal/PortalItem"' can only be default-imported using the 'esModuleInterop' flag

187 import PortalItem from 'esri/portal/PortalItem';
~~~~~~~~~~

node_modules/@types/arcgis-js-api/index.d.ts:61296:3
61296 export = PortalItem;
~~~~~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

Found 6 errors.`

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