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

Importing ConfigurableUiContent from appui-react throws an error in node.js #1185

Closed
grigasp opened this issue Jan 21, 2025 · 0 comments · Fixed by #1186
Closed

Importing ConfigurableUiContent from appui-react throws an error in node.js #1185

grigasp opened this issue Jan 21, 2025 · 0 comments · Fixed by #1186
Assignees
Labels
bug Something isn't working

Comments

@grigasp
Copy link
Member

grigasp commented Jan 21, 2025

Describe the bug

In Node.js, when I import ConfigurableUiContent from [email protected], I get the following error:

SyntaxError: The requested module 'react-error-boundary' does not provide an export named 'ErrorBoundary'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
    at async formattedImport (E:\itwinjs-1\repos\viewer-components-react\packages\itwin\tree-widget\node_modules\.pnpm\[email protected]\node_modules\mocha\lib\nodejs\esm-utils.js:9:14)
    at async exports.requireOrImport (E:\itwinjs-1\repos\viewer-components-react\packages\itwin\tree-widget\node_modules\.pnpm\[email protected]\node_modules\mocha\lib\nodejs\esm-utils.js:42:28)
    at async exports.loadFilesAsync (E:\itwinjs-1\repos\viewer-components-react\packages\itwin\tree-widget\node_modules\.pnpm\[email protected]\node_modules\mocha\lib\nodejs\esm-utils.js:100:20)
    at async singleRun (E:\itwinjs-1\repos\viewer-components-react\packages\itwin\tree-widget\node_modules\.pnpm\[email protected]\node_modules\mocha\lib\cli\run-helpers.js:162:3)
    at async exports.handler (E:\itwinjs-1\repos\viewer-components-react\packages\itwin\tree-widget\node_modules\.pnpm\[email protected]\node_modules\mocha\lib\cli\run.js:375:5)  

To Reproduce

https://stackblitz.com/edit/stackblitz-starters-jnwgn6gg?file=index.js

Expected Behavior

No response

Screenshots

No response

Desktop (please complete the applicable information)

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants