candcconsulting / GroupingandMapping

MIT License
4 stars 2 forks source link

Yarn Build 'Failed to compile' #11

Open StuartKeelingWSP opened 1 year ago

StuartKeelingWSP commented 1 year ago

I get the same error code on my home laptop as my work laptop after running yarn build:

yarn run v1.22.18 $ SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build Creating an optimized production build... Failed to compile.

./node_modules/@itwin/presentation-components/lib/esm/presentation-components/instance-filter-builder/PresentationInstanceFilterDialog.js Attempted import error: 'Dialog' is not exported from '@itwin/itwinui-react'.

./node_modules/@itwin/presentation-components/lib/esm/presentation-components/instance-filter-builder/PresentationInstanceFilterDialog.js Attempted import error: 'Dialog' is not exported from '@itwin/itwinui-react'.

./node_modules/@itwin/presentation-components/lib/esm/presentation-components/instance-filter-builder/PresentationInstanceFilterDialog.js Attempted import error: 'Dialog' is not exported from '@itwin/itwinui-react'.

./node_modules/@itwin/presentation-components/lib/esm/presentation-components/instance-filter-builder/PresentationInstanceFilterDialog.js Attempted import error: 'Dialog' is not exported from '@itwin/itwinui-react'.

./node_modules/@itwin/presentation-components/lib/esm/presentation-components/instance-filter-builder/PresentationInstanceFilterDialog.js Attempted import error: 'Dialog' is not exported from '@itwin/itwinui-react'.

./node_modules/@itwin/presentation-components/lib/esm/presentation-components/instance-filter-builder/PresentationInstanceFilterDialog.js Attempted import error: 'Dialog' is not exported from '@itwin/itwinui-react'.

./node_modules/@itwin/object-storage-azure/lib/frontend/wrappers/FrontendBlockBlobClientWrapper.js 26:17 Module parse failed: Unexpected token (26:17) File was processed with these loaders:

./node_modules/@itwin/object-storage-azure/lib/common/internal/Helpers.js 37:14 Module parse failed: Unexpected token (37:14) File was processed with these loaders:

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

candcconsulting commented 1 year ago

Hi Stuart ... where are you building from (folder wise) ? Also can you check the versions of the itwinUI-react ... ?

"@itwin/itwinui-react": "^1.46.0",

This is what I get PS F:\iModelHub\GroupingandMapping> npm list @itwin/itwinui-react npm ERR! code ELSPROBLEMS npm ERR! invalid: @itwin/itwinui-react@1.38.1 F:\iModelHub\GroupingandMapping\packages\app\node_modules\@itwin\itwinui-react @itwin/demo-portal-repo@ F:\iModelHub\GroupingandMapping └─┬ itwin-ESG-portal@0.2.0 -> .\packages\app ├─┬ @itwin/appui-layout-react@3.2.7 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app ├─┬ @itwin/appui-react@3.2.7 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app ├─┬ @itwin/components-react@3.2.7 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app ├─┬ @itwin/core-react@3.2.7 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app ├─┬ @itwin/create-imodel-react@0.4.1 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app ├─┬ @itwin/delete-imodel-react@0.2.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app ├─┬ @itwin/grouping-mapping-widget@0.9.1 │ ├─┬ @itwin/imodel-browser-react@0.12.3 │ │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget, "~1.42.0" from packages/app/node_modules/@itwin/reports-config-widget-react │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget ├─┬ @itwin/imodel-browser-react@0.11.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget ├─┬ @itwin/imodel-components-react@3.2.7 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget ├── @itwin/itwinui-react@1.38.1 invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget ├─┬ @itwin/manage-versions-react@0.7.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget ├─┬ @itwin/one-click-lca-react@0.2.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget ├─┬ @itwin/reports-config-widget-react@0.1.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget, "~1.42.0" from packages/app/node_modules/@itwin/reports-config-widget-react └─┬ @itwin/web-viewer-react@3.1.1 └─┬ @itwin/viewer-react@3.3.1 └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.42.0" from packages/app/node_modules/@itwin/grouping-mapping-widget, "~1.42.0" from packages/app/node_modules/@itwin/reports-config-widget-react

Let's see if there is a difference

StuartKeelingWSP commented 1 year ago

Hi Glen,

my file location for the repo is C:\Users\UKSDK001\Documents\iTwin Local\iTwin Development\GroupingandMapping i run build in \packages\app

C:\Users\UKSDK001\Documents\iTwin Local\iTwin Development\GroupingandMapping> npm list @itwin/itwinui-react npm ERR! code ELSPROBLEMS npm ERR! invalid: @itwin/itwinui-react@1.38.1 C:\Users\UKSDK001\Documents\iTwin Local\iTwin Development\GroupingandMapping\packages\app\node_modules\@itwin\itwinui-react @itwin/demo-portal-repo@ C:\Users\UKSDK001\Documents\iTwin Local\iTwin Development\GroupingandMapping └─┬ itwin-ESG-portal@0.2.0 -> .\packages\app ├─┬ @itwin/appui-layout-react@3.7.13 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react
├─┬ @itwin/appui-react@3.7.13 │ ├── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react │ └─┬ @itwin/presentation-components@3.7.13 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react, "~1.42.0" from packages/app/node_modules/@itwin/reports-config-widget-react, "~1.46.0" from packages/app/node_modules/@itwin/presentation-components ├─┬ @itwin/components-react@3.7.13 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react ├─┬ @itwin/core-react@3.7.13 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react ├─┬ @itwin/create-imodel-react@0.4.1 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react ├─┬ @itwin/delete-imodel-react@0.2.2 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react ├─┬ @itwin/grouping-mapping-widget@0.9.3 │ ├─┬ @itwin/imodel-browser-react@0.12.3 │ │ └── @itwin/itwinui-react@1.42.0 deduped │ └── @itwin/itwinui-react@1.42.0 ├─┬ @itwin/imodel-browser-react@0.11.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react ├─┬ @itwin/imodel-components-react@3.7.13 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react ├── @itwin/itwinui-react@1.38.1 invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react ├─┬ @itwin/manage-versions-react@0.7.3 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react ├─┬ @itwin/one-click-lca-react@0.2.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react ├─┬ @itwin/reports-config-widget-react@0.1.0 │ └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react, "~1.42.0" from packages/app/node_modules/@itwin/reports-config-widget-react └─┬ @itwin/web-viewer-react@3.1.5 └─┬ @itwin/viewer-react@3.5.0 └── @itwin/itwinui-react@1.38.1 deduped invalid: "^1.46.0" from packages/app, "~1.46.0" from packages/app/node_modules/@itwin/appui-layout-react, "~1.46.0" from packages/app/node_modules/@itwin/appui-react, "~1.46.0" from packages/app/node_modules/@itwin/components-react, "~1.46.0" from packages/app/node_modules/@itwin/core-react, "~1.46.0" from packages/app/node_modules/@itwin/imodel-components-react, "~1.42.0" from packages/app/node_modules/@itwin/reports-config-widget-react, "~1.46.0" from packages/app/node_modules/@itwin/presentation-components

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\UKSDK001\AppData\Local\npm-cache_logs\2023-09-28T07_25_15_096Z-debug-0.log